Manera, Villiam
vmanera at manord.com
Tue Apr 6 17:54:20 EST 2004
is the path in which the cookie 'pysid' of the session belong: '/' means all 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 15.37 A: mod_python at modpython.org Oggetto: [mod_python] session example well it works with this, thanks, but what's the explanation ? I have in httpd.conf --------------------------------------------------- DocumentRoot c:/somedir <Directory "c:/somedir/try"> AddHandler mod_python .psp PythonHandler mod_python.psp PythonDebug On Order allow,deny Allow from all PythonOption ApplicationPath '/' </Directory> ------------------------------------------- Selon "Manera, Villiam" <vmanera at manord.com>: > 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 > _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|