use [man]ini_set[/man]
ini_set("session.cache_expire", "180");
this sets the value for php.ini (ie the default)
or [man]session_cache_expire[/man]
session_cache_expire(180);
the 180 value is the number of minutes to keep the session alive (after the most recent session_start()) before destroying the session.
adam