[mod_python] Session-Handling mod_publisher

Gregor Kling gregor.kling at dvz.fh-giessen.de
Fri Nov 10 04:53:28 EST 2006


Hello,

Once upon the time I used hidden fields for session tracking.
Now I want to use Cookies in combination with the FileSession class for
that.
The problem is how to assure the cookie was successfully added by the
browser.
Is there an idiom ?
Can I do something like that:
def start(req):
c = Cookie.Cookie('foobar',expires='')
Cookie.add_cookie(req, c)
t = get_cookies(req,Cookie,foobar)
if t:
go_on
else:
leave

-- 
Gregor Kling

DV-Zentrum
Fachhochschule Giessen
Tel: 0641/309-1292
E-Mail: gregor.kling at dvz.fh-giessen.de


More information about the Mod_python mailing list