diff --git a/moosh.php b/moosh.php index fb5d3be2..46020a55 100755 --- a/moosh.php +++ b/moosh.php @@ -296,6 +296,11 @@ function string_exists() { } } if (session_status() !== PHP_SESSION_ACTIVE) { + if (method_exists('\core\session\manager', 'destroy_all')) { + \core\session\manager::destroy_all(); + } else { + \core\session\manager::kill_all_sessions(); + } session_start(); } //Deviceanalytics redirect on login event, we need to avoid that.