It's not a secret anymore!*
The moose likes Servlets and the fly likes cookie values becoming null when I set my client m/c date 2 days ahead 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 » Servlets
Bookmark "cookie values becoming null when I set my client m/c date 2 days ahead" Watch "cookie values becoming null when I set my client m/c date 2 days ahead" New topic
Author

cookie values becoming null when I set my client m/c date 2 days ahead

Rajendra Rathod
Greenhorn

Joined: Mar 23, 2005
Posts: 2
Hi,

When I set client machine date by 2 days ahead, the values in the cookie becoming null. How can I prevent this?
Rajendra Rathod
Greenhorn

Joined: Mar 23, 2005
Posts: 2
Got the Answer

cookie.setMaxAge(Integer.MAX_VALUE)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cookie values becoming null when I set my client m/c date 2 days ahead
 
Similar Threads
confusing cookies
why cookies getMaxAge method return -1
Cookies not getting reset in Netscape 4.72!!! URGENT!!!
Not getting the valid cookies from server.
how to remember the user's name when second time login