public function authenticateRequest(DispatcherContext $context)
    {
        $session = $context->getUser()->getSession();
        $request = $context->getRequest();

        if(!$session->isActive())
        {
            if ($request->getCookies()->has($this->getConfig()->cookie_name))
            {
                //Logging the user by auto-start the session
                $this->loginUser();

                //Perform CSRF authentication
                parent::authenticateRequest($context);

                return true;
            }
        }
    }