public function isAuthenticated()
    {
        // Validate token.
        $authenticated = $this->validateToken($this->getCookieToken());
        if ($authenticated) {
            $this->setCookieToken($this->dispenseToken()); // Dispense a new token.
        }
        return $authenticated;
    }
public function isAuthenticated()
    {
        // Validate token.
        $authenticated = $this->validateToken($this->getCookieToken());
        if ($authenticated) {
            $this->setCookieToken($this->dispenseToken()); // Dispense a new token.
        }
        return $authenticated;
    }
public function isAuthenticated ( ) { // Validate token. $ authenticated = $ this -> validateToken ( $ this -> getCookieToken ( ) ) ; if ( $ authenticated ) { $ this -> setCookieToken ( $ this -> dispenseToken ( ) ) ; // Dispense a new token. } return $ authenticated ; }
Checks whether or not the current user is authenticated.

@return bool
Checks whether or not the current user is authenticated .