R: [mod_python] session example

Manera, Villiam vmanera at manord.com
Tue Apr 6 11:42:37 EST 2004


you may retry with:
PythonOption ApplicationPath '/'
in apache httpd.conf

Villiam

-----Messaggio originale-----
Da: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org]Per conto di
pascalbarbedor at free.fr
Inviato: martedì 6 aprile 2004 10.13
A: mod_python at modpython.org
Oggetto: [mod_python] session example


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
_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list