• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!