public static function checkSessionConcurrency() { if (Session::userIsLoggedIn()) { if (Session::isConcurrentSessionExists()) { LoginModel::logout(); Redirect::home(); exit; } } }
function __construct() { Session::init(); Auth::checkSessionConcurrency(); if (!Session::userIsLoggedIn() && Request::cookie('remember_me')) { Redirect::to("login/loginWithCookie"); } $this->view = new View(); }