bugs 344 and 308: broken user id in $_SESSION due to php.ini register_globals

git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1230 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2006-04-21 02:10:45 +00:00
parent d637dbbe1d
commit 01f06a878f
2 changed files with 3 additions and 3 deletions

View File

@@ -29,9 +29,9 @@
if (isset($_COOKIE[session_name()]))
{
session_start();
if (isset($_SESSION['id']))
if (isset($_SESSION['pwg_uid']))
{
$user['id'] = $_SESSION['id'];
$user['id'] = $_SESSION['pwg_uid'];
$user['is_the_guest'] = false;
}
else