If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Never expiring poll & never expring cookies??  XML
Forum Index » Support Forum
Author Message
Anonymous



Is there any upper limit to what i can set the following parameter to? Can I set it to 1 year (8760).....2 years (17520)....

$cookie_expire = 12; // hours


Is there a never expire value?
Anonymous



Hello, Chris!

You can't. The closest you get to never is x years.
Setcookie requires a the time to expire in seconds:
setcookie("bookmarks","cookievalue",time()+3600*24*30*12*10)
This will set cookie for 10 years.

-------------------------------------------------------------------
Bereza Nikita
Rapid Internet Development Department
E-mail: nike@alarit.com
Alar Information Technologies,
URL: http://www.alarit.com
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum