Commit 4192f7e2 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added 'id' to the defaults list so it gets included in the session. Useful

for checking whether a user's account has been suspended.
parent f3b262cf
......@@ -57,9 +57,10 @@ class Session {
public function __construct() {
$this->defaults = array(
'logout_time' => 0,
'id' => 0,
'username' => '',
'passwordchange' => false,
'institution' => 'mahara'
'institution' => 'mahara'
);
// Resume an existing session if required
if (isset($_COOKIE['PHPSESSID'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment