Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Where is my cookie ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Where is my cookie ???" Watch "Where is my cookie ???" New topic
Author

Where is my cookie ???

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 353
Im playing a littel bit with cookies, this methoed, works in my browser, but where is my cookie, i thought, that when i closed down my browser, i could find a cookie with the name *CUSTOMER*.* somewhere on my pc !



Frank
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

By default, cookies created with the Cookie class will be session cookies; they last only as long as the current session, and aren't saved to disk. Look at the setMaxAge() method of the Cookie class to see how to make them last longer.


[Jess in Action][AskingGoodQuestions]
Fahd Shariff
Ranch Hand

Joined: Nov 22, 2002
Posts: 38
By default cookies don't persist past current browsing session.


Fahd Shariff<br />"Let the code do the talking"
 
GeeCON Prague 2014
 
subject: Where is my cookie ???