timeouts (session expire)

802 views
Skip to first unread message

Rob

unread,
Jul 3, 2006, 3:15:07 PM7/3/06
to testlink-dev
Hi,
I have many complaints from users that their login session times out
very quickly. It seems that the expire time varies depending on what
they are doing. Most complaints say that when executing tests, the
session last for only 5 minutes.

When I looked inside the common.php file I noticed the doSessionStart
function. I increased the session_set_cookie_params value higher but
with no effect.

Does anyone know how to either eliminate the session expire for
testlink or to increase it to something more reasonable (24hrs).

Thanks in advance for your time and help.
-Rob

Kevin Levy

unread,
Jul 3, 2006, 4:39:50 PM7/3/06
to testli...@googlegroups.com, roble...@gmail.com
First - what version of TestLink are you using?

I am running test link 1.6.2 and am not seeing any timeout issues. For what it is worth, here are some timeout values I have set in config.inc.php - they both appear to be commented out.

/**
* Set the session timeout value (in minutes).
* This will prevent sessions timing out after very short periods of time
*/
//ini_set('session.cache_expire',900);

/**
* Set the session garbage collection timeout value (in seconds)
* The default session garbage collection in php is set to 1440 seconds (24 min\
utes)
* If you want sessions to last longer this must be set to a higher value.
* You may need to set this in your global php.ini if the settings don't take e\
ffect.
*/
//ini_set('session.gc_maxlifetime', 54000)

let us know if you are still seeing issues and please mention the version of TL you are using and the Browser type and version you are using.
thanks,

Kevin

----------------------------------------
> From: roble...@gmail.com
> To: testli...@googlegroups.com
> Subject: [testlink-dev] timeouts (session expire)
> Date: Mon, 3 Jul 2006 12:15:07 -0700

_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted

Asiel Brumfield

unread,
Jul 3, 2006, 4:44:55 PM7/3/06
to testli...@googlegroups.com, roble...@gmail.com
This is likely due to your gc_maxlifetime being set too low in your global php.ini. If your other settings are correct changing this and then restarting your web server should hopefully fix the problem.
See the comment I added a few months ago to the config.inc.php file.


/**
 * Set the session garbage collection timeout value (in seconds)
 * The default session garbage collection in php is set to 1440 seconds (24 minutes)

 * If you want sessions to last longer this must be set to a higher value.
 * You may need to set this in your global php.ini if the settings don't take effect.

 */
//ini_set('session.gc_maxlifetime', 54000)

Hope this helps.

--
Asiel

Francisco Mancardi

unread,
Jul 4, 2006, 4:17:33 AM7/4/06
to testli...@googlegroups.com
24 hrs in note a reasonable value (IMHO)
Reply all
Reply to author
Forward
0 new messages