/**
Change the configuration option value to $value.
the php config will be changed only during the execution of the php script
*/
ini_set ( $option, $value );
// Now server will keep session data for 2 hour
ini_set('session.gc_maxlifetime', 7200);
// All clients will remember their session id for EXACTLY 2 hour
session_set_cookie_params(7200);