Use the session.gc_maxlifetime and session.gc_probability configuration directives in php.ini.
session.gc_maxlifetime accepts a value in seconds, its default is 24 minutes or 1440 seconds. session.gc_probability determines how likely the system is to preform garbage collection (delete outdated sessions) on every request, its default value is 1%. So to ensure that users are booted after 20 minutes of idle time up garbage collection probability. I use a 75% probability, but for other reasons.. I use it to get a more accurate count of how many users are on my site at any given time.
These directives are setable at any level, so you could use the ini_set() function, edit them in php.ini itself, or if you are using apache, edit the directives using .htaccess or httpd.conf.
Have a look at:
http://www.php.net/ini_set
hth,
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::