Listing 38.3. Metoda akcji auth/unauthorized
public function unauthorizedAction()
{
    $this->view->identity = false;
    $auth = Zend_Auth::getInstance();
    if ($auth->hasIdentity()) {
        $this->view->identity = $auth->getIdentity();
    }
}