aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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
{