/** * Check if there is concurrent session, and logout if so, redirect to home and hard-stop. */ public static function checkSessionConcurrency() { if (Session::userIsLoggedIn()) { if (Session::concurrentSessionsExist()) { LoginModel::logout(); Redirect::home(); exit; } } }