aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php2
-rw-r--r--include/user.inc.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index c5efa98ad..0965467ce 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -544,7 +544,7 @@ function log_user($user_id, $remember_me)
}
session_set_cookie_params($session_length);
session_start();
- $_SESSION['id'] = $user_id;
+ $_SESSION['pwg_uid'] = $user_id;
}
/*
diff --git a/include/user.inc.php b/include/user.inc.php
index 83d86a6c7..b1ec2f879 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -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