[mod_python] cookies/session management

Damjan gdamjan at mail.net.mk
Thu Apr 19 00:47:35 EST 2001


> > >     r.headers_out["set-cookie:"] = \
> > >         "IRWB_SESSIONID=%s;" \
> > >   "Expires: %s;" \
> > >         "Cache-control: no-cache;" \
> > >         "Max-Age=0" % (sessionID, time.time() - TIME_YEAR)
> > >
> > 
> > the given site." ?
> > you mean the cookie value lingers around in a given session ?
> 
> Yes.
> If I set an expiry date in the future, the cookie lingers past browser
> open and closes as would be expected.
> If I set something (including the expiry thing above) that indicates
> that the cookie should be expunged then:
>   - If I reload the page, the cookie is still there.
>   - If I close and reopen the browser, the cookie is no longer there.

Maybe it's a bug in the browser?? 
Anyway, try adding "path=/;" to the cookie and see what happens.

-- 
Damjan Georgievski		|           Дамјан Георгиевски
Skopje, Macedonia		|           Скопје, Македонија



More information about the Mod_python mailing list