![]() |
[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.
|
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.
|
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.