Lors d'une requete ajax on redirige le tout vers la page de déconnexion

This commit is contained in:
Michael RICOIS 2011-09-09 10:14:53 +00:00
parent 95c9cef2f3
commit ffa165dd3d

View File

@ -59,6 +59,11 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$session = new Zend_Session_Namespace('login');
$session->url = $_SERVER['REQUEST_URI'];
$layout = Zend_Layout::getMVCInstance();
if (!$layout->isEnabled())
{
$this->_response->setRedirect('/user/logout')->sendResponse();
}
$this->_response->setRedirect('/user/login')->sendResponse();
//Authentifié => on met à jour la session