int ADOdb_Session::lifetime( optional int $lifeTime )
The static method lifeTime sets or gets the maximum lifetime of the session connection in seconds. Setting the value overrides the default, which is determined by the value of the session.gc_maxlifetime in the php.ini file
The value must be set before config() is called
When used without parameters it returns the currently set value
include_once 'adodb/adodb.inc.php'; include_once "adodb/session/adodb-session2.php"; /* * Sets the session lifetime to 10 minutes */ ADOdb_Session::lifetime(600); ADOdb_Session::config($driver,$host,$user,$pass,$database);