aspose file tools*
The moose likes Servlets and the fly likes Cookie question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie question" Watch "Cookie question" New topic
Author

Cookie question

Bob Young
Ranch Hand

Joined: Dec 23, 2000
Posts: 65
I am working through Marty Hall's CoreServlets and JSP examples in the book. If I create a cookie using the default maxAge() of -1, I cannot find the cookie in the windows/cookies folder. If I create a persistant cookie then I can find the cookie. Because I cannot find the file does this imply that nonpersistant cookies are saved into memory only and not to the client hard drive? Also with the persistant cookie, if I open the file, I can only find the persistant portion (name, value) pair. Why is this? Thanks, as always.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Cookies with a session lifetime don't have to be written to disk, but there is no standard requirement for how they are handled or how the browser stores them.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie question