mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 04:39:56 +03:00
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
This commit is contained in:
parent
ea572da688
commit
dd8d571761
2 changed files with 6 additions and 5 deletions
|
@ -65,12 +65,12 @@ if (isset($conf['session_save_handler'])
|
||||||
'pwg_session_destroy',
|
'pwg_session_destroy',
|
||||||
'pwg_session_gc'
|
'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
|
* returns true; used when the session_start() function is called
|
||||||
|
|
|
@ -32,6 +32,7 @@ if (isset($_COOKIE[session_name()]))
|
||||||
if (isset($_SESSION['id']))
|
if (isset($_SESSION['id']))
|
||||||
{
|
{
|
||||||
$user['id'] = $_SESSION['id'];
|
$user['id'] = $_SESSION['id'];
|
||||||
|
$user['is_the_guest'] = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue