diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions_session.inc.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php index 8765028ae..7fdf5dde8 100644 --- a/include/functions_session.inc.php +++ b/include/functions_session.inc.php @@ -71,11 +71,8 @@ if (isset($conf['session_save_handler']) ini_set('session.use_only_cookies', $conf['session_use_only_cookies']); ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid'])); } - session_name( $conf['session_name'] ); - session_set_cookie_params( - ini_get('session.cookie_lifetime'), - cookie_path() - ); + session_name($conf['session_name']); + session_set_cookie_params(0, cookie_path()); } // cookie_path returns the path to use for the PhpWebGallery cookie. |