Hi,
when trying to set a persistent cookie from a servlet like this:
Cookie c = new Cookie( "test", "test" );
c.setMaxAge( 108000 );
response.addCookie( c );
it results in the following header being sent to the client:
HTTP/1.1 200 OK
Date: Mon, 21 Feb 2000 20:19:25 GMT
Server: Orion/0.9.1n
Last-Modified: Sat, 19 Feb 2000 19:37:02 GMT
Accept-Ranges: bytes
Content-Length: 7157
Set-Cookie: test=test; Expires=Wed, 23-Feb-0 02:19:25 GMT; Path=
Cache-Control: private
Connection: Close
Content-Type: text/html
At least netscape communicator does not seem to like the "23-Feb-0" part in
the expires field and
refuses to persist the cookie.
Furthermore, if we repeat the request, one Set-Cookie header is added for
every subsequent request.
After four requests, we get the following header:
HTTP/1.1 200 OK
Date: Mon, 21 Feb 2000 20:19:25 GMT
Server: Orion/0.9.1n
Last-Modified: Sat, 19 Feb 2000 19:37:02 GMT
Accept-Ranges: bytes
Content-Length: 7157
Set-Cookie: test=test; Expires=Wed, 23-Feb-0 02:19:25 GMT; Path=
Set-Cookie: test=test; Expires=Wed, 23-Feb-0 02:19:25 GMT; Path=
Set-Cookie: test=test; Expires=Wed, 23-Feb-0 02:19:25 GMT; Path=
Set-Cookie: test=test; Expires=Wed, 23-Feb-0 02:19:25 GMT; Path=
Cache-Control: private
Connection: Close
Content-Type: text/html
This looks like the server is doing some kind of response reuse, but not
clearing the headers correctly.
regards,
Jochen Strunk
(-) Jochen Strunk
(-) SIGNAL 7 Gesellschaft f�r Informationstechnologie mbH
(-) Br�der-Knau�-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665402, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de