Ajout plugin pour la gestion du preDispatch général

This commit is contained in:
Michael RICOIS 2011-01-12 13:18:00 +00:00
parent ba59d02735
commit 6ec4d44029

View File

@ -37,9 +37,12 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$sessionNamespace = new Zend_Session_Namespace($storage->getNamespace());
$sessionNamespace->setExpirationSeconds($timeout);
$auth->setStorage($storage);
if (Zend_Registry::isRegistered('URL')){
$url = Zend_Registry::get('URL');
$this->_response->setRedirect($url);
}
$this->_response->setRedirect('/');
}
}
}
Zend_Registry::set('URL',$_SERVER['REQUEST_URI']);