Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
03/10/2002 22:54:55
|
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?
|
|
04/10/2002 17:08:11
|
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
|
|
|
|
|
|
Based on the open source JForum
|