// 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);