Changing session timeout ?

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
zeevikn
Advanced user
Posts: 18
Joined: Tue Aug 17, 2010 3:08 pm

Changing session timeout ?

Post by zeevikn »

Hi.

Sessions on our TL are too short.
I want to set the inactivity session timeout to 24 hours.
Where do I set it ?

Thanks,
Zeevik.

PS.
I was looking at config.inc.php, there are few sessions params, but all are x00 (or more) of minutes which is much more than the current system behavior.
Or is it really in seconds ? (although stating minutes).
istream
Advanced user
Posts: 59
Joined: Wed Mar 31, 2010 10:28 pm

Re: Changing session timeout ?

Post by istream »

Try this
$tlCfg->sessionInactivityTimeout = 60;
its in minutes.
------
5.12.3. Time-out limit
Set the session time-out for inactivity (in minutes). Default value of this internal limit is 60 minutes. Time-out is limited by both php.ini and this parameter. Lower value is applied! Some administrators could shorten the session time specifically for TestLink for security reason (without affect other applications).
The problem is that the value in php.ini is not always controllable to you (if installation in a hosted environment, or safe mode restrictions, or php is shared with other applications) and because the timeout is coupled with probabilities (see gc_probability and gc_divisor) it's not always predictable if the session will be cleaned up.
$tlCfg->sessionInactivityTimeout = 60;
- Page 46----Installation Manual
Last edited by istream on Mon Oct 18, 2010 9:38 pm, edited 1 time in total.
zeevikn
Advanced user
Posts: 18
Joined: Tue Aug 17, 2010 3:08 pm

Re: Changing session timeout ?

Post by zeevikn »

$tlCfg->sessionInactivityTimeout = 9900;

seems like much more than 60 minutes :)

Could it be that 9900 is too high, and being override somehow ? (by whom?)
Post Reply