aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
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/functions_session.inc.php
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 '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