Mise en place de la redirection au logout

This commit is contained in:
Claire DELBOS 2017-02-22 11:09:37 +01:00
parent b9b5c774e5
commit d431b01981
3 changed files with 10 additions and 4 deletions

View File

@ -505,6 +505,10 @@ class UserController extends Zend_Controller_Action
*/
public function logoutAction()
{
$auth = Zend_Auth::getInstance();
if ( $auth->hasIdentity() ) {
$this->identity = $auth->getIdentity();
}
Zend_Auth::getInstance()->clearIdentity();
$session = new Zend_Session_Namespace('wcheck');
$session->unsetAll();
@ -518,12 +522,14 @@ class UserController extends Zend_Controller_Action
$this->view->assign('ajax', $ajax);
$refresh = 5;
if($this->identity->idClient==195){//Redirection spéciale inextenso
$url="http://inexweb.fr";
}else{
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array(
'controller' => 'user',
'action' => 'login',
), 'default', true);
}
$this->view->assign('url', $url);
if ( $ajax == 0 ) {

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB