Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!