>From the online netscape spec at
http://home.netscape.com/newsref/std/cookie_spec.html:
Syntax of the Set-Cookie HTTP Response Header:
Set-Cookie: NAME=VALUE; expires=DATE;
path=PATH; domain=DOMAIN_NAME; secure
The date string is formatted as:
Wdy, DD-Mon-YYYY HH:MM:SS GMT
> From: Jay Wright <[EMAIL PROTECTED]>
> Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
> Date: Mon, 21 Jan 2002 13:58:09 -0800
> To: [EMAIL PROTECTED]
> Subject: Setting Cookies in the response object
>
> I am trying to set a cookie in the response object, with the code:
>
> response.addHeader("Set-Cookie", "this=that");
>
> Unfortunatley, there is no expiration time set, so when the cookie comes
> through it is treated as a session cookie and not stored. Is there syntax
> that would allow this cookie to be set with an expiration date (for example:
> one month)?
>
> Thanks,
> Jay
>
> ___________________________________________________________________________
> 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
>
___________________________________________________________________________
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