[mod_python] cookies/session management

Seung Chan Lim slim at maya.com
Wed Apr 18 13:28:26 EST 2001


>     r.headers_out["set-cookie:"] = \
>         "IRWB_SESSIONID=%s;" \
>   "Expires: %s;" \
>         "Cache-control: no-cache;" \
>         "Max-Age=0" % (sessionID, time.time() - TIME_YEAR)
>

without knowing anything about mod_python, have you tried
setting the expires section to be

Thu, 01-Jan-70 00:00:01 GMT

? (i.e. in GMT format )

what do you mean by "it works if [you] close the browser and reopen it to
the given site." ?
you mean the cookie value lingers around in a given session ? are you
checking to
see if this cookie exist on the server side code or via client-side code
like javascript or something?

I'm just grabbing stuff out of thin-air here. =)

slim








More information about the Mod_python mailing list