W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

setting the session cookie max age to -1?

From: Karsten Boehm <boehm@informatik.uni-leipzig.de>
Date: Wed, 9 Jun 1999 17:22:25 -0400 (EDT)
Message-ID: <375EDB71.B96935E8@informatik.uni-leipzig.de>
CC: Jigsaw Mailing List <www-jigsaw@w3.org>

	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
Received on Wednesday, 9 June 1999 17:24:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:34 UTC