Skip to content
Snippets Groups Projects
Commit cbbac5b0 authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Throw an exception if session can't be destroyed

parent b45c70c9
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,9 @@ class UnlCAS {
$data = $item->get();
$handler = new Elgg\Http\DatabaseSessionHandler(_elgg_services()->db);
$handler->destroy($data['session_id']);
if (!$handler->destroy($data['session_id'])) {
throw new \Exception('unable to destroy session on single sign out');
}
//Remove the cached item
$item->clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment