| From: lightbulb432 [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 26 June, 2007 14:13 | | How can I configure Tomcat to use permanent cookies as opposed to session | cookies? One of the reasons I'd like to know is to see the behavior of | method isNew() of HttpSession, which I can do if I'm able to disable | cookies. As the Javadoc for HttpSession says: | | "A servlet should be able to handle cases in which the client does not | choose to join a session, such as when cookies are intentionally turned | off."
I think the only thing that differentiates between session and persistent cookies is the presence of an expiration date. No date == session cookie, future date == persistent cookie. To check the behavior you're curious about, why not just disable cookies in your browser? ISTR that TC then just sets the session ID explicitly in the query string of the URL. ----------------------------------------- ------------------------------------------------------------ The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. ------------------------------------------------------------ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]