public function isLoggedIn()
    {
        $session = $this->Controller->request->session();
        if ($session->check('Auth.CakeAdmin')) {
            return (bool)$session->read('Auth.CakeAdmin');
        }
        return false;
    }
public function isLoggedIn()
    {
        $session = $this->Controller->request->session();
        if ($session->check('Auth.CakeAdmin')) {
            return (bool)$session->read('Auth.CakeAdmin');
        }
        return false;
    }
public function isLoggedIn ( ) { $ session = $ this -> Controller -> request -> session ( ) ; if ( $ session -> check ( 'Auth.CakeAdmin' ) ) { return ( bool ) $ session -> read ( 'Auth.CakeAdmin' ) ; } return false ; }
Checks if an administrator is logged in.

@return bool
Checks if an administrator is logged in .