kamal213 Posted November 3, 2011 Share Posted November 3, 2011 Hi guys, I have a PHP Script were user would enter a username and password to get access, but the problem I keep having is every half n hour or so user have to sign in again cause the keeps logging them out for some reason. Please I need your help and advice to make this stop. Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/ Share on other sites More sharing options...
freelance84 Posted November 3, 2011 Share Posted November 3, 2011 Do you have access to the php.ini file on your sever? If so this can be set through maxlifetime Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/#findComment-1284553 Share on other sites More sharing options...
kamal213 Posted November 3, 2011 Author Share Posted November 3, 2011 Yes I have access to it let me just open it and see search for the term Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/#findComment-1284554 Share on other sites More sharing options...
kamal213 Posted November 3, 2011 Author Share Posted November 3, 2011 I am on a XAMMP apache 2.2 server and I found it has 2 php.ini files one is configuration settings the other is development file, can you tell me which one I would need to change? Thanks Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/#findComment-1284556 Share on other sites More sharing options...
freelance84 Posted November 3, 2011 Share Posted November 3, 2011 Find this in the php.ini file: session.gc_maxlifetime Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/#findComment-1284571 Share on other sites More sharing options...
kamal213 Posted November 3, 2011 Author Share Posted November 3, 2011 Thanks for your reply I have change from 1440 to 3600 as and restarted Imagine that should be it..guess I have to wait 24minutes to see if it works lol! Link to comment https://forums.phpfreaks.com/topic/250357-php-login-out-every-half-an-hour-help/#findComment-1284574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.