It's not a secret anymore!
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Where is my cookie ???" Watch "Where is my cookie ???" New topic

Where is my cookie ???

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 358
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 !

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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"
I agree. Here's the link:
subject: Where is my cookie ???
jQuery in Action, 3rd edition