aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-21 09:22:11 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-21 09:22:11 +0000
commit960884d9d267628cede224596d64da1b92e727be (patch)
treeb605c05dcd5b7f842bb11a49398a489ca2f2ed89 /engine
parent9a5d64841bf249b69b3412d90996868d83401dea (diff)
downloadelgg-960884d9d267628cede224596d64da1b92e727be.tar.gz
elgg-960884d9d267628cede224596d64da1b92e727be.tar.bz2
Blanking session code on initialisation fail
git-svn-id: https://code.elgg.org/elgg/trunk@2031 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php9
1 files 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) {