Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rajendra Rathod
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the Answer

cookie.setMaxAge(Integer.MAX_VALUE)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic