[Zope-dev] Re: session cookies newbie question

Tres Seaver tseaver at palladion.com
Sun Sep 10 21:52:14 EDT 2006


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

Serge Zagorac wrote:
> Hi All,
> 
> I would like to access the browser's session cookie values. By browser's
> (or clients) session cookies I mean those cookies that have the expiry
> time set 'at  end of session' and are not stored in the  cookie.txt. Is 
> there  something in Zope's API that can help me do it. I need the
> solution for Mozilla and Microsoft based browsers.
> 
> Either Zope or general python API pointer would be much appreciated.

The information you want is not available server-side, because the
client does not pass the relevant data (the expiration, or lack of one)
in the HTTP-Cookie header.  See the cookie spec[1] for details.

You need to be asking how to do what you want client-side, e.g. in
Javascript, or else find another solution to your problem.

[1] http://wp.netscape.com/newsref/std/cookie_spec.html


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFBMFN+gerLs4ltQ4RAlKEAKDF0f+Go2zXIw/G8QtSFH8K6diMwwCdEnzN
v77ZG1rKxxn4fAhGtgB6XHU=
=xNAD
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list