[mod_python] session example

Colin Fox cfox at cfconsulting.ca
Tue Apr 6 09:39:32 EST 2004


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

Gregory (Grisha) Trubetskoy wrote:

|
| Also keep in mind that the cookie is set only once - when the session is
| new. After that there is no need for it, it's the client who has to send
| the cookie to the server every time, the server does not need to "return"
| it. So if your session persists over 100 HTTP requests, 1 will have a
| cookie header, and 99 will not.
|
| Grisha

Actually, this is definitely NOT the behaviour I'm seeing. If I delete
the pysid, and my site, then tell the browser to ask before storing a
cookie, I can see that every single call to Session() is actually saving
a new pysid. Plus, every pysid it's writing has a different value.

The path in the cookie is "/", so I don't understand why it would be
rewriting all the time.

Any ideas?

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

iD8DBQFAct1EoaQ1/feGlJoRAqQsAJ9i6pX0ZgmfH5oAdJG3SbjjGERWowCfeov/
R4ZR+5cH09qAQ78UF3j7+BY=
=nY0O
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list