ZoomCities IT Community Webmaster Forum

Full Version: cookie never expires
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
how can u set a cookie that never expires? do u use time()+0 for unlimited?
No, that would mean it would automatically expires.
0 sets it to expire once browser is closed.
err so how would u do unlimited?
There is no point to doing unlimited. Think about it, the cookie will eventually be deleted. Cookies aren't meant to never expire. The point is for them to expire. To me, a year is enough to hold a cookie for:
PHP Code:
<?php
setcookie
("field"$fieldtexttime()+31536000);
?>
darkfate Wrote:No, that would mean it would automatically expires.

[Image: icon_arrow.gif]
sorry, i cant read the text on that piece of paper Tongue
Can we just save those cookies in our server's jar? Smile
o.O

i set the cookie expiration at 1000000000 i dunno how long that is Tongue i just know its a very long time
That's 16666666.666666666666666666666667 minutes. Tongue
That's like 32 years.
wrong, i just built a script in Dr. Scheme and it says it ends after .6 Tongue

16666666.6

try it, http://www.drscheme.org Smile

(edit: to better clerify the calculator is wrong by putting a 7 in, the 6 should always continue hence it ending at .6 Wink )
Why would you want the cookies to never expire? Cant the user just delete them anyways. So all this work is really for nothing.
darkblade25 Wrote:Why would you want the cookies to never expire? Cant the user just delete them anyways. So all this work is really for nothing.

darkfate Wrote:There is no point to doing unlimited. Think about it, the cookie will eventually be deleted.
*cough*
parananagon Wrote:wrong, i just built a script in Dr. Scheme and it says it ends after .6 Tongue

16666666.6

try it, http://www.drscheme.org Smile

(edit: to better clerify the calculator is wrong by putting a 7 in, the 6 should always continue hence it ending at .6 Wink )
what you are entering is a linux timestamp...
1000000000 = september 2001, it already passed..
Pages: 1 2
Reference URL's