We are having a little trouble w/ cookies and orion, i think. We've tried
adjusting the code below to try cookies for anywhere from 6months to 5 years
in the future, but with no luck. In each case, the cookie sent to the
browser has a cookie w/ an expiration for a few days back. We're
reconfirming by bringing up the servlet w/ the jsdk, but wondering if anyone
else saw this.
Mike
servlet
....
public static final int DEFAULT_MAX_COOKIE_AGE = 60 * 60 * 24 * 365 * 5; //
five years
....
public void setCookie(HttpServletResponse res, User user) {
Cookie cookie = new Cookie(COOKIE_NAME, encodeId(user.getId()));
cookie.setMaxAge(maxCookieAge);
System.err.println ("UserManager.java: setCookie(res, user): maxAge: " +
maxCookieAge);
cookie.setPath("/");
res.addCookie(cookie);
}
end servlet
-------------------------------------
Using Sniffit, I received this header:
[BEGIN header information]
HTTP/1.1 302 Moved Temporarily
Date: Tue, 29 Feb 2000 19:12:43 GMT
Server: Orion/0.9.2
Content-Length: 156
Set-Cookie: ACMember=5b415a575c190a160c5a4b1a5a5e5c1259435d0a7b5f5406;
Comment=Activated Community Member Data; Expires=Tue, 08-Feb-00 02:09:55
GMT; Path=/
Cache-Control: private
Location: http://www.javalobby.org/
Connection: Keep-Alive
Keep-Alive: timeout=15, max=100
Content-Type: text/plain
[END header information]
begin:vcard
n:Sick;Mike
tel;cell:919 602 2782
tel;work:919 678 0300
x-mozilla-html:TRUE
url:www.activated.com
org:Activated Intelligence
adr:;;1001 Winstead Drive;Cary;NC;27513;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Vice President
note:Activated Intelligence - Bringing Life To The Net, and The Net To Life
x-mozilla-cpt:;-23296
fn:Mike Sick
end:vcard