aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-02-03 16:19:56 +0000
committernikrou <nikrou@piwigo.org>2006-02-03 16:19:56 +0000
commitdd8d5717617dee3a25213f8c6686d2bd02f28329 (patch)
tree95d40c0029cb43c06381358b14b3cf7436dd38df /include
parentea572da6884fdb711da084bcdcc931c4744af2a0 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions_session.inc.php10
-rw-r--r--include/user.inc.php1
2 files changed, 6 insertions, 5 deletions
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
{