Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   [PHP] Cookie Expiration (http://www.geekboards.com/forums/showthread.php?t=82)

Fwks08 04-22-2006 12:18 PM

[PHP] Cookie Expiration
 
Is it possible to set a cookie so that it lasts forever, rather than have a specific timestamp? I understand it's pointless to have one that lasts forever; domains and cookies change overtime. But still, it's something that I've thought about. I also understand a timestamp such as "2448974563466907697456" will last for a decade or so, which is virtually forever, but I mean for eternity.

raudi 04-22-2006 03:10 PM

No such thing to make it "forever", but 9999999999999999999999999999 is good enough :) That is what all major websites do, because it is impossible to do "forever" I think.

Fwks08 04-23-2006 09:44 AM

Oh alright. I know such a large number will outlast anyones cookies. I mean, domains change, cookies are erased and replaces; they certainly don't last more than 4 years. I was just curious as to wether or not it was possible to set cookies to "forever" than just "virtually forever".


All times are GMT -5. The time now is 02:42 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.