Dec 14, 2006 #1 ecalbert Programmer Dec 25, 2004 61 IL i have a login for watching videos. I need to set the timeout to be very large like a few hours. How do I do this?
i have a login for watching videos. I need to set the timeout to be very large like a few hours. How do I do this?
Dec 14, 2006 #2 traingamer Programmer Jun 18, 2002 3,270 US The default is typically 180 minutes (three hours). Use phpinfo() to see what your system setting is. Greg "Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill Upvote 0 Downvote
The default is typically 180 minutes (three hours). Use phpinfo() to see what your system setting is. Greg "Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
Dec 14, 2006 Thread starter #3 ecalbert Programmer Dec 25, 2004 61 IL how can i change it to larger? Upvote 0 Downvote
Dec 14, 2006 #4 sleipnir214 Programmer May 6, 2002 15,350 US There are two settings that affect sessions. First is the lifetime of the session cookie. It's set, by default, to "as long as the browser says open", so you should be okay. For an discussion of how all the other session variable settings in php.ini affect sessions, see faq434-4908 Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
There are two settings that affect sessions. First is the lifetime of the session cookie. It's set, by default, to "as long as the browser says open", so you should be okay. For an discussion of how all the other session variable settings in php.ini affect sessions, see faq434-4908 Want the best answers? Ask the best questions! TANSTAAFL!
Dec 14, 2006 Thread starter #5 ecalbert Programmer Dec 25, 2004 61 IL it's on a hosted server -- can I still change the php.ini? Upvote 0 Downvote
Dec 14, 2006 #6 sleipnir214 Programmer May 6, 2002 15,350 US No, but you may be able to override settings. See: http://www.php.net/manual/en/configuration.changes.phpand http://www.php.net/manual/en/function.ini-set.php Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
No, but you may be able to override settings. See: http://www.php.net/manual/en/configuration.changes.phpand http://www.php.net/manual/en/function.ini-set.php Want the best answers? Ask the best questions! TANSTAAFL!
Dec 14, 2006 Thread starter #7 ecalbert Programmer Dec 25, 2004 61 IL there is not a setting I can just put at the top of the page?? i know in asp I would do session.timout= -there is no equivalent of this in php Upvote 0 Downvote
there is not a setting I can just put at the top of the page?? i know in asp I would do session.timout= -there is no equivalent of this in php
Dec 15, 2006 #8 cyberspace Technical User Aug 19, 2005 968 GB this tutorial should help http://www.phpfreaks.com/tutorials/77/0.php 'When all else fails.......read the manual' Upvote 0 Downvote
this tutorial should help http://www.phpfreaks.com/tutorials/77/0.php 'When all else fails.......read the manual'