Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookie  RSS feed

 
mini mehta
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that Cookie in the servlet can only be set for some finite seconds , but what do u do if the application requires the cookie to be store in the machine for infinte time?
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's see... The static final Integer.MAX_VALUE is 2147483647.
That many seconds = approx 68 years... Is that good enough for you?
 
We noticed he had no friends. So we gave him this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!