Commit 8a5dd7dc authored by Francois Gannaz's avatar Francois Gannaz
Browse files

session::refresh()

parent 4de2456f
......@@ -31,7 +31,7 @@ class mod_labnbook_session
/**
* @var array
*/
private $missions = [];
private $missions;
private $identifyByCasAuth = true;
......@@ -53,6 +53,14 @@ class mod_labnbook_session
$this->userId = $this->fetchUserId($USER->id);
}
public function refresh() {
global $SESSION;
unset($this->userId);
unset($SESSION->labnbook_userid);
unset($this->missions);
unset($SESSION->labnbook_missions);
}
/**
* Search the LabNbook user ID in the cache (object attribute),
* then in the user session,
......
Supports Markdown
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