On Fri, 24 Sep 1999, Dr. Dragomir D. Dimitrijevic wrote:
> It looks like that addCookie method uses max age to encode
> (calculate) the "Expires" tag, not "Max-Age" as one might expect.
>
> Is there any workaround?
The problem may be that your server isn't providing a "Date" header as
part of the HTTP response. WIthouth a Date header, the client is forced to
calculate the cookie expiration against the local time, not the server
time.
If you want to test this theory, do the following at a UNix prompt:
% telnet hostname 80
HEAD /index.html HTTP/1.0
You should see something like:
HTTP/1.1 200 OK
Server: JavaWebServer/1.1.1
Content-Length: 14448
Content-Type: text/html
Last-Modified: Thu, 26 Aug 1999 17:49:35 GMT
Connection: close
Date: Fri, 24 Sep 1999 15:32:34 GMT
If your server is putting in a Date header, then it may be some other
issue.
.duncan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html