[mod_python] Session-Handling mod_publisher

Gregor Kling gregor.kling at dvz.fh-giessen.de
Sun Nov 12 05:47:07 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Graham Dumpleton wrote:

> Why use cookies directly? 
I do not want to begin a session, before I can guarantee that the client
browser does accepting cookies.The session begins after the user
succeeded in login in.


> Why not use the Session class instead as
Indeed I do use Session, but as said, after the assurance.
> underneath it does the cookie stuff for you. You also should not use
> FileSession directly either. Always use Session.Session() to get the
> reference to the session object and use the PythonOption to specify
> the type of session to use.
Ok.
> 
> BTW, if you dump out req.headers_out you can verify that the output
> headers are setup correctly with the cookie stuff.
Thanks for this tip.

gregor.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFVvuqJFHWQ694uCYRAnNdAKCB7rp7ZHwTcds9Au9tTAM1YkHerQCfXSep
+wKaVckSEGpuDtTslbgFYt4=
=in4F
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list