From 960884d9d267628cede224596d64da1b92e727be Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 21 Aug 2008 09:22:11 +0000 Subject: Blanking session code on initialisation fail git-svn-id: https://code.elgg.org/elgg/trunk@2031 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sessions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index dba0db728..cce2b0e6b 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -195,7 +195,8 @@ } else { //$_SESSION['user'] = new ElggDummy(); $_SESSION['id'] = 0; - $_SESSION['guid'] = 0; + $_SESSION['guid'] = 0; + $_SESSION['code'] = ""; } } else { if (!empty($_SESSION['code'])) { @@ -208,12 +209,14 @@ unset($_SESSION['user']); // $_SESSION['user'] = new ElggDummy(); $_SESSION['guid'] = 0; - $_SESSION['id'] = 0; + $_SESSION['id'] = 0; + $_SESSION['code'] = ""; } } else { //$_SESSION['user'] = new ElggDummy(); $_SESSION['guid'] = 0; - $_SESSION['id'] = 0; + $_SESSION['id'] = 0; + $_SESSION['code'] = ""; } } if ($_SESSION['id'] > 0) { -- cgit v1.2.3