The invocation of the servlet contains the Cookies as existed when the servlet was 
invoked, adding a cookie after the servlet is invoked makes it available to the next 
invocation.

You might want to set an expiry date for the cookie using the following, and 
optionally a path. the path makes the cookie available at the application level, 
rather than just where it was created.

//------------------------------------------------------------------
Cookie cookie = new Cookie("ben401kLoginEIN", objEIN.toString());
cookie.setMaxAge(60*60*24*365);
cookie.setPath("/ben401k");

Bill Lindsay

Merrill Lynch
Benefits and Investment Solutions
401(k) Infrastructure Automation

___________________________________________________________________________
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