[mod_python] session example

pascalbarbedor at free.fr pascalbarbedor at free.fr
Tue Apr 6 10:13:02 EST 2004


hi 
thanks for preceeding answer but I cant make it work.

what's wrong with this:
---------------------------------------
sess=Session.Session(req)

if sess.is_new():
    req.write(sess.id())
else :
    req.write('used session %s'%sess.id())

sess['login']='toto'

req.write("%s"%sess)

sess.save()
----------------------------------------

shouldn't it display session used on second reload of the page ?


thanks


More information about the Mod_python mailing list