Session timeout

The release related discussions, plans and questions.
Locked
Kurn
TestLink user
Posts: 2
Joined: Mon Jun 25, 2007 11:41 am

Session timeout

Post by Kurn »

The line

ini_set('session.cache_expire',900);

in the

config.inc.php

seems not to have any effect. My sessions time out after about 1h regardless what value I enter.
geocom
TestLink user
Posts: 1
Joined: Thu Dec 20, 2007 12:14 pm

The same for me, sessions time out are kkiling us

Post by geocom »

We are having the same problem and we don't know how to solve this... we've tried to change this line with a value like 1440 (24hrs) but nothing.
Does anyone knows how to solve this?
marty
Advanced user
Posts: 26
Joined: Tue Feb 14, 2006 6:22 pm

Post by marty »

Hi,

Just a thought here, I never tried, but there is a paramter in PHP.INI that maybe could be changed to resolve your problems?

; Document expires after n minutes.
session.cache_expire = 180

Thanks,

Martin
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

php.ini could disable ability to use ini_set() for more security. It could be your case.
evan
TestLink user
Posts: 2
Joined: Fri Jan 25, 2008 6:50 pm

Timeout

Post by evan »

/revive

So, does anyone solved this problem? Where do i have to set to increase the time for the timeout ?
jctong
TestLink user
Posts: 2
Joined: Thu Feb 14, 2008 9:38 pm

Post by jctong »

are you using ubuntu?

we're using version 7.10 and the crazy part about the timeout is that there's a separate cron job that will go and delete all your php sessions that are beyond some set time.

look in: /var/lib/php5
here is a list of current sessions, users of your testlink installation

/etc/cron.d/php5
this cron job definition goes into the previous directory and removes all files older than "maxlifetime", this effectively makes the user timeout.

what is your maxlifetime?
run this: /usr/lib/php5/maxlifetime

it will return the current setting of maxlifetime for your php sessions. if you take a look at the contents of the script, you will discover where to modify the values necessary to increase maxlifetime.

in my case, /etc/php5/apache2/php.ini
modify the following:
;session.gc_maxlifetime = 1440
to
session.gc_maxlifetime = 172800

(for 48 hours, for example)
then run maxlifetime (as called by the cron job) to make sure the new value will be used.
Locked