W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1999

Re: setting the session cookie max age to -1?

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 20 Jul 1999 15:15:26 +0200
Message-ID: <3794766E.18526D6F@sophia.inria.fr>
To: Karsten Boehm <boehm@informatik.uni-leipzig.de>
CC: www-jigsaw@w3.org
Fixed, that will works in the next release.

Regards, Benoit.

Karsten Boehm wrote:

> Hi,
>
>         I need to set the age of the servlet session cookies to -1 (or any
> negative value) in order to prohibit the storage of the cookie by the
> client browser, since I do want the session to be invalidated when the
> client closes his browser. The jsdk 2.1 API-doc describes the desired
> behavior as follows:
>
>         Description of Cookies.setMaxAge(int):
>
>         ... A negative value means that the cookie is not stored persistently
>         and will be deleted when the Web browser exits. A zero value causes
>         the cookie to be deleted...
>
>         That's exactly what I want to do and I believe the only thing that has
> to be done is to set the session cookie max-age in the Servlet
> properties to -1. But, that's exactly what I cannot do with jigadm
> (still using the old one, since I have to rely on jdk 1.x). The least
> value I can set is 0 which expires the session immmedately; that's not
> what I want.
>
>         Is there any way how I can set the session cookie max-age to -1
> (manually?) or could this feature be implemented into jigadm?
>
>         Thanx in advance,
>
>         Karsten Boehm

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------
Received on Tuesday, 20 July 1999 09:18:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT