• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie question

 
Bob Young
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic