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", $fieldtext, time()+31536000);
?>
darkfate Wrote:No, that would mean it would automatically expires.
![[Image: icon_arrow.gif]](http://i24.photobucket.com/albums/c35/nooniensingh/icon_arrow.gif)
sorry, i cant read the text on that piece of paper

Can we just save those cookies in our server's jar?

o.O
i set the cookie expiration at 1000000000 i dunno how long that is

i just know its a very long time
That's 16666666.666666666666666666666667 minutes.

wrong, i just built a script in Dr. Scheme and it says it ends after .6
16666666.6
try it,
http://www.drscheme.org
(edit: to better clerify the calculator is wrong by putting a 7 in, the 6 should always continue hence it ending at .6

)
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 
16666666.6
try it, http://www.drscheme.org 
(edit: to better clerify the calculator is wrong by putting a 7 in, the 6 should always continue hence it ending at .6
)
what you are entering is a linux timestamp...
1000000000 = september 2001, it already passed..