Session Timeout

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
Dualtha
Advanced user
Posts: 27
Joined: Thu Jun 11, 2009 4:51 pm

Session Timeout

Post by Dualtha »

Hi,

Does anyone know how to increase the session timeout? While entering scripts our browser session is timing out and we are losing all our work.
Any previous posts on this issue were never resolved.
Thanks for any feedback.
edias
Advanced user
Posts: 34
Joined: Mon Jun 08, 2009 8:59 pm

Post by edias »

look in config.inc.php for conf below and change it to what ever timeout you want!

/** Set the session timeout for inactivity (in minutes).
* Default is 60 minutes
*/
$tlCfg->sessionInactivityTimeout = 60;
Dualtha
Advanced user
Posts: 27
Joined: Thu Jun 11, 2009 4:51 pm

Post by Dualtha »

Excellent. Worked a treat.
hboeken
TestLink user
Posts: 5
Joined: Thu Jun 25, 2009 10:47 am

Post by hboeken »

I haven't tried the solution yet, but according to the Installation Manual, section 5.12.3, testlinkInactivityTimeout, this should not have worked, or what am I missing here:
5.12.3
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!

So if there is a lower value of session.gc_maxlifetime in php.ini this is still applied if it is lower than the reconfigured testlinkInactivityTimeout?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Yes.
hboeken
TestLink user
Posts: 5
Joined: Thu Jun 25, 2009 10:47 am

Post by hboeken »

Then I don't understand why it worked for Dualtha...

Dualtha, could you give some more details how exactly your settings are now?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I see that the configuration parameter is still confusing. It is designed for the case, that testlink admin cannot modify general php settings and would like to limit a session for shorter time. I.e. shorter time limit is applied.
Did you read Installation manual? It's described here.
hboeken
TestLink user
Posts: 5
Joined: Thu Jun 25, 2009 10:47 am

Post by hboeken »

havlatm wrote:I see that the configuration parameter is still confusing. It is designed for the case, that testlink admin cannot modify general php settings and would like to limit a session for shorter time. I.e. shorter time limit is applied.
Did you read Installation manual? It's described here.
Yes, I read it. And I think I understood it. But the previous postings in this thread seemed to contradict what is described in the manual (or I misunderstood the postings).

Anyway I think there is the need to be able to set the session for a longer time than the general php settings, not a shorter time.
At least this is the case in our installation, where testers' sessions time out while they are entering their test suite descriptions and when they press 'save' everything is lost due to the short session timeout.
hboeken
TestLink user
Posts: 5
Joined: Thu Jun 25, 2009 10:47 am

Post by hboeken »

havlatm wrote:I see that the configuration parameter is still confusing. It is designed for the case, that testlink admin cannot modify general php settings and would like to limit a session for shorter time. I.e. shorter time limit is applied.
Did you read Installation manual? It's described here.
In our testlink 1.8.1 installation I've modified the following lines in config.inc.php and got the expected result (timeout period of 5 hours) without the need to adapt the "global" setting in php.ini:

line 150:

Code: Select all

$tlCfg->sessionInactivityTimeout = 300
line 164:

Code: Select all

ini_set('session.gc_maxlifetime', 18000);
Thanks.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I added increased settings directly to the page code. I hope it will be fine now.
burkery
TestLink user
Posts: 1
Joined: Wed Oct 14, 2009 9:59 pm

Session Timeout

Post by burkery »

hboeken wrote:In our testlink 1.8.1 installation I've modified the following lines in config.inc.php and got the expected result (timeout period of 5 hours) without the need to adapt the "global" setting in php.ini:

line 150:

Code: Select all

$tlCfg->sessionInactivityTimeout = 300
line 164:

Code: Select all

ini_set('session.gc_maxlifetime', 18000);
This is helpful...thanks. I was further wondering if similar setting could be used to totally disable the timeout? Better yet, does TestLink have any "remember me" functionality that can be enabled?

Regards,

Burke
Locked