Manera, Villiam
vmanera at manord.com
Wed Dec 3 11:28:08 EST 2003
sorry, the latest test that I made was wrong, effectively with: PythonOption ApplicationPath /script/cgi/cgi-mpy the script below cgi-mpy working weel, but the script below other directory doesn't work: DocumentRoot "C:/wwwroot/cartelle_sito_mdn" <Directory "C:/wwwroot/cartelle_sito_mdn/script/cgi/cgi-py"> ..... PythonOption ApplicationPath /script/cgi/cgi-mpy <Directory "C:/wwwroot/cartelle_sito_mdn/script/cgi/studi"> ..... PythonOption ApplicationPath /script/cgi/studi If I first call an url below studi I'm able to work with all the module below studi, but any attempt to go in cgi-mpy cause a new sorry, the latest test that I made was wrong, effectively with PythonOption ApplicationPath /script/cgi/cgi-mpy the script below cgi-mpy working weel, but the script below other directory doesn't work: If I first call an url below studi I'm able to work with all the module below studi, but any attempt to go in cgi-mpy cause a new Session id vice versa if I first call a url below cgi-mpy .... instead with path = '' all work fine, but I don't discovery the way to do it with PythonOption ApplicationPath Villiam -----Messaggio originale----- Da: mod_python-bounces at modpython.org [mailto:mod_python-bounces at modpython.org]Per conto di Neil Beattie Inviato: sabato 29 novembre 2003 15.54 A: mod_python at modpython.org Cc: Manera, Villiam Oggetto: Re: R: [mod_python] Problem with Session module with multiple script alias not under t he document root > I'm sorry but still don't work. > I'm removed all references to cgi and I moved all my directory with .py > under document root: > > DocumentRoot "C:/wwwroot/cartelle_sito_mdn" > <Directory "C:/wwwroot/cartelle_sito_mdn/script/cgi/cgi-py"> > > and with this new configuration req.headers_out: > {'Set-Cookie': 'pysid=d4d10ab8e7917b43becbff01a2452f7e; > path=/script/cgi/cgi-mpy/\', 'Cache-Control': 'no-cache="set-cookie"'} > and if I relod the page it never passed to req.headers_in Looks like the path is not correct (extra \) try adding the following line to your httpd.config addHandler entry: PythonOption ApplicationPath /script/cgi/cgi-mpy I have just had the same problem but have not yet discovered where the extra \ comes from ( it is in _req.hlist.directory in session.py) > > if I modify se session module: > def make_cookie(self): > .... > c.path = '' #dirpath[len(docroot):] > then req.headers_out become: > {'Set-Cookie': 'pysid=fb35b851ad27e7effe820c36871bc9b4; path=', > 'Cache-Control': 'no-cache="set-cookie"'} > and If I relod the page it go to req.headers_in: > {'Cookie': 'pysid=fb35b851ad27e7effe820c36871bc9b4', 'Connection': > 'Keep-Alive', ...} > and req.heades_out : {} > > so why if something else then '' is in path the pysid wasn't writing into > the html heading? > Neil Beattie NB Technology (Pty) Ltd _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|