public static function tempo() { if (!Session::get('time') || !defined("SESSION_TIME")) { throw new Exception("Não foi definido nenhum tempo para Sessão"); } if (SESSION_TIME == 0) { return; } if (time() - Session::get('time') > SESSION_TIME * 60) { Session::destruir(); header("location:" . URL . "error/acesso/8080"); } else { Session::set("time", time()); } }