Ajout plugin pour la gestion du preDispatch général
This commit is contained in:
parent
ba59d02735
commit
6ec4d44029
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user