• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie's setMaxAge

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) How can i set a cookie to stay at clients place for ever. ( like one in the javaranch's site) . Is there a special int parameter that will do it.

2) I am going to give exam in couple of days ? Can i discuss the HF mock exam questions . I have a doubt in couple of them .


Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) setMaxAge's parameter is in seconds, so pass a very big value (a few years).

2) Post your doubts in new threads.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic