File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 12678
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.
jQuery in Action, 2nd edition
subject: Cookie question
Similar Threads
if( I can't figure this out....)
Applet cookie access and retrieval
Cookies not persistent ... how can it be?
how to set Persistant Cookies
creating secure Java apps