pascalbarbedor at free.fr
pascalbarbedor at free.fr
Tue Apr 6 15:37:14 EST 2004
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 >
|