Opened 17 years ago

Closed 17 years ago

#5266 closed (invalid)

for k in request.session gives me a key error

Reported by: julian Owned by: Jacob
Component: Uncategorized Version: dev
Severity: Keywords: session, key error
Cc: jumo@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

hi,

i am storing a few thenks in my session. after doing this and that i want to delete all the stuff stored in the session, not calling each key explicitly, so i do:

for k in request.session:

del request.session[k]

wich raises a key error on the line "for k in request.session:"

Change History (1)

comment:1 by pytechd, 17 years ago

Resolution: invalid
Status: newclosed
for k in request.session.keys():
    del request.session[k]
Note: See TracTickets for help on using tickets.
Back to Top