aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_session.inc.php')
-rw-r--r--include/functions_session.inc.php10
1 files changed, 5 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