From dd8d5717617dee3a25213f8c6686d2bd02f28329 Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 3 Feb 2006 16:19:56 +0000 Subject: fixed problem of cookie session path fixed problem of undefined variable conf in upgrade_feed.php fixed problem of undefined index is_the_guest of tab variable user git-svn-id: http://piwigo.org/svn/trunk@1023 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_session.inc.php | 10 +++++----- include/user.inc.php | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php index 8a5438374..4ec814a5f 100644 --- a/include/functions_session.inc.php +++ b/include/functions_session.inc.php @@ -65,12 +65,12 @@ if (isset($conf['session_save_handler']) 'pwg_session_destroy', 'pwg_session_gc' ); + ini_set('session.use_cookies', $conf['session_use_cookies']); + ini_set('session.use_only_cookies', $conf['session_use_only_cookies']); + ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid'])); + ini_set('session.name', $conf['session_name']); + ini_set('session.cookie_path', dirname($_SERVER['PHP_SELF'])); } - -ini_set('session.use_cookies', $conf['session_use_cookies']); -ini_set('session.use_only_cookies', $conf['session_use_only_cookies']); -ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid'])); -ini_set('session.name', $conf['session_name']); /** * returns true; used when the session_start() function is called diff --git a/include/user.inc.php b/include/user.inc.php index 04adde9ac..ad58b3f92 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -32,6 +32,7 @@ if (isset($_COOKIE[session_name()])) if (isset($_SESSION['id'])) { $user['id'] = $_SESSION['id']; + $user['is_the_guest'] = false; } else { -- cgit v1.2.3