public function redirectCheck()
    {
        if(isset($_COOKIE['twofactorDir-'.$this->dir]) && $_COOKIE['twofactorDir-'.$this->dir] == $this->cookieCode)
        {
            self::redirect();
            return true;
        }else
        {
            return false;
        }
    }