View Full Version : Time before auto log out is very short - how to fix?
danad
2007-03-05, 12:09 AM
This has been something ongoing with our Sugar install, and I imagine it's a server setting that I'm just ignorant of. Basically, after not using Sugar for a short period of time (about 15 minutes), I'm logged out automatically and need to log in again to do anything. I use Sugar all day but not consistently, and I'd love a way to stop these constant log out/log ins. Suggestions?
andydreisch
2007-03-05, 12:38 AM
Hi danad, we use Sugar all day long and there is no auto-logout. I don't know off the top of there is a such a setting on config.php and manipulated thru Admin->Settings.
But ... if you IP changes, you'll be forced to log in again. Are you seeing this?
Andy
danad
2007-03-05, 01:00 AM
I checked Admin > Settings, and there isn't anything there. Our IP doesn't change with our new internet provider, and it changed now and again with the old one, but the behaviour was the same either way.
webworx
2007-04-03, 10:17 PM
Did anyone find a way to adjust this setting... I looked through the config.php file and I don't see anything. This auto log out feature is driving me nuts.
Angel
2007-04-03, 10:55 PM
Are you logged out without any user action preceding it? Or are you brought back to the login page after you are idle for some time and then you click on something?
In the case of the latter, it may be a session timeout issue.
andydreisch
2007-04-03, 11:58 PM
webworx, see the "Validate IP address" setting in Admin -> System Settings. Change this setting and let us know if it changes.
Andy
Johnmclucas
2007-04-12, 08:09 PM
This has been something ongoing with our Sugar install, and I imagine it's a server setting that I'm just ignorant of. Basically, after not using Sugar for a short period of time (about 15 minutes), I'm logged out automatically and need to log in again to do anything. I use Sugar all day but not consistently, and I'd love a way to stop these constant log out/log ins. Suggestions?
Have you tried changing the time out for the session in IIS or you webserver? I did not see an environment list, so I am not sure what you are running in.
For IIS I went to the website properties and then the configure button for the application settings on the virtual directory tab and then the options tab. My default timeout was 20 mins. I bumped that up to 500 min and it seems to have fixed it, but I have only talked to one user so far.
Good Luck,
meathie
2008-09-11, 02:42 AM
It has been suggested to me that we can manage this using .htaccess files in the root directory of the server (as we do not have access to the php config file, denied by our provider).
However while we have the .htaccess file configured correctly this has not altered the time that sugar will allow you to be log in with no activity.
I too would love an answer for this.
Matthew Meath
Danielg42
2008-09-11, 04:41 PM
Have you tried changing the time out for the session in IIS or you webserver? I did not see an environment list, so I am not sure what you are running in.
For IIS I went to the website properties and then the configure button for the application settings on the virtual directory tab and then the options tab. My default timeout was 20 mins. I bumped that up to 500 min and it seems to have fixed it, but I have only talked to one user so far.
Good Luck,
I also had to do this...
The default was 1440 seconds/24 minutes, I just set the cookie to expire when they close their browser.
Not sure how to go about it in apache though.
theone
2008-09-29, 08:39 PM
Has anyone figured out a method for Apache? I really need to stay logged for longer than 24 minutes.
TIA,
Don
freephile
2008-10-07, 03:39 AM
The default session lifetime (garbage collection) in PHP is 24 minutes. See http://us2.php.net/manual/en/session.configuration.php
You can find the setting for your server in your PHP configuration file. e.g.
grep -i session.gc_maxlifetime /etc/php5/apache2/php.ini
Either change this setting for your server or manipulate it through .htaccess for your application.
Changing the value to 28800 would make it 8 hours. e.g.
(in php.ini)
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 28800
(restart apache to reload the php.ini)
sudo apache2ctl configtest
sudo apache2ctl graceful
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.