diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php index 8e27de433ebd8cb69d68429594f67bb392862d4b..bd218f182481b1a5fff96505c9e76a416426d838 100644 --- a/plugins/cas_auth_unl/start.php +++ b/plugins/cas_auth_unl/start.php @@ -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();