[mod_python] session example

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Apr 6 16:46:20 EST 2004


Does the browser send the session cookie back to the server correctly?

Grisha

On Tue, 6 Apr 2004, Colin Fox wrote:

> -----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-----
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list