From: cash Date: Sat, 5 Dec 2009 16:25:58 +0000 (+0000) Subject: if there is already a user in the session, we don't need to set the code from the... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3d1a4eddb6c115e4cd58b1c743b1ffa2c71ca4e5;p=lorea%2Felgg.git if there is already a user in the session, we don't need to set the code from the cookie git-svn-id: http://code.elgg.org/elgg/trunk@3728 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 18a66f3ff..5edf374b0 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -532,7 +532,6 @@ function session_init($event, $object_type, $object) { $_SESSION['user'] = $user; $_SESSION['id'] = $user->getGUID(); $_SESSION['guid'] = $_SESSION['id']; - $_SESSION['code'] = $_COOKIE['elggperm']; } else { // user must have been deleted with a session active unset($_SESSION['user']);