wood burning stoves
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie question" Watch "Cookie question" New topic

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

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Cookie question
It's not a secret anymore!