wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 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 !



Frank
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where is my cookie ???
 
Similar Threads
Confusion between Cookie and JSession
Setting Cookie
login and downloading files from website using java code
How to access java beans
HttpSession and Cookie