This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12758
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: Cookie question
 
Similar Threads
if( I can't figure this out....)
how to set Persistant Cookies
Applet cookie access and retrieval
creating secure Java apps
Cookies not persistent ... how can it be?