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
mahara
mahara
Commits
1edb9aad
Commit
1edb9aad
authored
Jun 09, 2010
by
Richard Mansfield
Browse files
Perform more checks before attempting to delete session record on logout
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
18337dcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/user.php
View file @
1edb9aad
...
...
@@ -996,7 +996,8 @@ class LiveUser extends User {
// Unset session variables related to authentication
$this
->
SESSION
->
set
(
'authinstance'
,
null
);
if
(
$this
->
get
(
'sessionid'
)
&&
table_exists
(
'usr_session'
))
{
if
(
get_config
(
'installed'
)
&&
!
defined
(
'INSTALLER'
)
&&
$this
->
get
(
'sessionid'
)
&&
function_exists
(
'table_exists'
)
&&
table_exists
(
'usr_session'
))
{
delete_records
(
'usr_session'
,
'session'
,
$this
->
get
(
'sessionid'
));
}
...
...
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