otuatail Posted May 17, 2006 Share Posted May 17, 2006 how do i extending a time out of a session. Does it have to be done on each web page. ?Desmond. Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/ Share on other sites More sharing options...
ryanlwh Posted May 17, 2006 Share Posted May 17, 2006 change the php ini value session.cookie_lifetime Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36760 Share on other sites More sharing options...
otuatail Posted May 18, 2006 Author Share Posted May 18, 2006 [!--quoteo(post=374817:date=May 18 2006, 12:42 AM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ May 18 2006, 12:42 AM) [snapback]374817[/snapback][/div][div class=\'quotemain\'][!--quotec--]change the php ini value session.cookie_lifetime[/quote]This does not help change the php ini value session.cookie_lifetimeI have no access to the server I am a user of a web host.ALL i have is session destroy, Unload etc. Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36765 Share on other sites More sharing options...
otuatail Posted May 18, 2006 Author Share Posted May 18, 2006 This is obviously a dificult one I thought someonre knew of a a way of extending a sesion timeout fromthe default 20 minutes to 30 minutes in code. It can be done in ASP. Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36848 Share on other sites More sharing options...
samshel Posted May 18, 2006 Share Posted May 18, 2006 Hello,Use session_set_cookie_params() in a page which is included in all pages (example : header or database connections file)hth Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36851 Share on other sites More sharing options...
otuatail Posted May 18, 2006 Author Share Posted May 18, 2006 PHP Manual gives example session_cache_expire For PHP 4.2.0 and aboveI get an error on this undefind function. My Web remote server is 4.3.2session_cache_expire can be used to set a time or return a time. Documentation states default 180 and this is in minutessession_set_cookie_params(180); does not give an error. If this is working is the time 180 minute and can I get the current value as session_cache_expire claims. Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36858 Share on other sites More sharing options...
otuatail Posted May 18, 2006 Author Share Posted May 18, 2006 session.cookie_lifetime(180); Fatal error: Call to undefined function: cookie_lifetime() in e:\domains\d\des-otoole.co.uk\user\htdocs\index.php on line 4session_start();session_set_cookie_params(180); times out after 20 minutessession_start();session_cache_expire(180); times out after 20 minutessession_start();session_start();session_cache_expire(180); times out after 20 minutes but Session remains on new browser session_start();session_set_cookie_params(180); times out after 20 minutes but Session remains on new browser None of the above functions in any configuration works. The figure of 180 comes from this website session_cache_expireand is suposed to be the default in minutes. Link to comment https://forums.phpfreaks.com/topic/9887-extending-a-time-out-of-a-session/#findComment-36912 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.