session_name("MySession"); session_set_cookie_params( 3600*24, "/", $_SERVER["HTTP_HOST"], is_https() ); session_cache_expire(60*24); // cache expire 60 mins