jjacquay712 Posted November 3, 2008 Share Posted November 3, 2008 i am using sessions for my site, and set the expiration time for the cookie through the session_set_cookie_params function. Is there anyway to make a session cookie last forever instead of using a specified amount of time in seconds? thanks, john Link to comment https://forums.phpfreaks.com/topic/131274-solved-php-session_set_cookie_params-help/ Share on other sites More sharing options...
DarkWater Posted November 3, 2008 Share Posted November 3, 2008 Just use a ridiculous time, like 20 years. I'm sure they will have revisited your site in that time. Link to comment https://forums.phpfreaks.com/topic/131274-solved-php-session_set_cookie_params-help/#findComment-681593 Share on other sites More sharing options...
jjacquay712 Posted November 3, 2008 Author Share Posted November 3, 2008 true, but i dont think php can handle numbers that large. Link to comment https://forums.phpfreaks.com/topic/131274-solved-php-session_set_cookie_params-help/#findComment-681594 Share on other sites More sharing options...
DarkWater Posted November 3, 2008 Share Posted November 3, 2008 PHP can handle your machine's maximum integer size, which, on 32 bit systems is 2^31 (signed) and on 64 bit systems, 2^63 (signed). Link to comment https://forums.phpfreaks.com/topic/131274-solved-php-session_set_cookie_params-help/#findComment-681595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.