code/dispatcher/authenticator/cookie.php
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;
            }
        }
    }
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;
            }
        }
    }
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 ; } } }
Authenticate using the cookie session id

If a session cookie is found and the session session is not active it will be auto-started.

@param DispatcherContext $context	A dispatcher context object
@return  boolean Returns TRUE if the authentication explicitly succeeded.
Authenticate using the cookie session id