On Mon, 26 Jul 1999, Chris Pratt wrote:

> Yup, milliseconds since epoch, which you can get from
> System.currentTimeMillis(), Date.getTime(), or Calendar.getTimeInMillis().

What makes you think it's milliseconds?  I believe it's seconds.
Checking out:

http://java.sun.com/products/servlet/2.1/html/api-reference.fm.html#1085

and scrolling down a bit:

setMaxAge

     public void setMaxAge(int expiry);

This method sets the maximum age of the cookie. The cookie will expire
after the given number of seconds have passed. Negative values will
ensure that the cookie will not persist on the client. A zero value
causes the cookie to be deleted from the client.


> ----- Original Message -----
> From: McNeill, Patricia (CAP, CDI) <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 26, 1999 7:18 AM
> Subject: Re: Cookies
>
> > Another question about cookies:  What value is SetMaxAge() looking
> > for - millisecs?
> >
> > TIA
> >
> > Patricia McNeill


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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

Reply via email to