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

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