Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
8a5dd7dc
Commit
8a5dd7dc
authored
Feb 22, 2019
by
Francois Gannaz
Browse files
session::refresh()
parent
4de2456f
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/session.php
View file @
8a5dd7dc
...
...
@@ -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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment