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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.