Timeout length

otari wrote on Tuesday, February 28, 2006:

Hello,
I have been unable to increase the session timeout for openemr. I have changed globals.php, httpd.conf, php.ini. All of these are set to 3600 seconds but in use, it is roughly 20 minutes. If I shorten the time in any of these files it does decrease the time but I am unable to increase past 20min just as if there is another file that is limiting the others. Have I over looked a file?
I am using openemr 2.8,php 4.3.11,mysql 4.0.26 on a Mac running OS X 10.4 Server with SSL. I have not had any other config issues, but I don’t know where to look next for this one. Thanks

andres_paglayan wrote on Tuesday, February 28, 2006:

there are some other issues such as session timeout,
and if you are using php_client too, then it has another php.ini file that it might overwrite the settings in the php.ini file used for apache,
and most systems have a bargage collector that swipes staff from /tmp, where sessions are hold by default,
so, you might want to change the place where php stores sessions (good idea), and/or modify the system bargage colector timing.

sunsetsystems wrote on Tuesday, February 28, 2006:

In particular you want to increase the value of session.gc_maxlifetime in php.ini.  The default is 1440 seconds, or 24 minutes.  I’m pretty sure that is your problem.

– Rod
www.sunsetsystems.com

otari wrote on Friday, March 10, 2006:

Thanks, changeing session.gc_maxlifetime did the trick.  (sorry about the slow response time I actually made the change the same day)

anonymous wrote on Thursday, March 18, 2010:

I am having same problem. I get kicked out every 4-5 mins! I increased session.gc_maxlifetime and still have same issue… !?

bradymiller wrote on Friday, March 19, 2010:

hey,

Ensure your php configuration file (php.ini) has following settings:
http://www.openmedsoftware.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F
(if you modify the php.ini file, ensure you restart the apache server)

If still having problems, then give us the OpenEMR version, package (ie. source vs. XAMPP package vs. ubuntu package vs. appliance), and your operating system.

-brady