Hi Dave, 

I don't think you are hitting the fossology timeout (which is very long - 8 
hours).  I think you are probably hitting the PHP session timeout, which by 
default on my system, php 5.3.3-4, that timeout is set to 24 minutes (default). 
  There are two enforcers in php to remove "old" sessions.  The first is a 
cron, the second is the php garbage collector (see steps 1 and 2 below).

In the following explanation, I'm using file paths from my debian system.  Your 
OS may put them somewhere else.

1) /etc/cron.d/php5
php installs a cron that runs every 30 minutes to delete your login session if 
it has gone unused for 24 minutes or more.

Here I've commented out the default command and changed it to only run at 7 am.

# Look for and purge old sessions every 30 minutes
#09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d 
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin 
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm

# purge only at 7 am
* 7    * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 
] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | 
xargs -n 200 -r -0 rm

2) /etc/php5/apache2/php.ini
If you looked closely you probably noticed that the above command didn't 
mention anything about the 24 minutes.  That's because it is buried in the 
maxlifetime file, which gets its information from the php config file, php.ini. 
 So in php.ini set these variables:

session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 28800

What those mean is that the php garbage collector will run only every 1/1000 
times that php is invoked.  When it runs it will delete sessions that haven't 
been used in  28800 seconds (8 hrs) or more.  The default maxlifetime is 1440 
seconds (24 minutes).

I hope that all makes sense.

Thank you Dave, Drago, Michael, Matt, and all, for your comments.

Bob Gobeille
_______________________________________________
fossology mailing list
fossology@fossology.org
http://fossology.org/mailman/listinfo/fossology

Reply via email to