This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 348
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: 24183

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"
subject: Where is my cookie ???
Similar Threads
HttpSession and Cookie
How to access java beans
Confusion between Cookie and JSession
Setting Cookie
login and downloading files from website using java code