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

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 UTC