clear information de ciblage
This commit is contained in:
parent
5d93818bae
commit
b73d2a946d
@ -20,8 +20,10 @@ class IndexController extends Zend_Controller_Action
|
||||
public function historiqueAction(){}
|
||||
|
||||
public function resetAction()
|
||||
{ $session = new Zend_Session_Namespace('ciblage');
|
||||
unset($session->ciblage);
|
||||
{
|
||||
require_once 'Scores/SessionCiblage.php';
|
||||
$session = new SessionCiblage();
|
||||
$session->clearCiblage();
|
||||
$this->_redirect('./');
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,14 @@ class UserController extends Zend_Controller_Action
|
||||
*/
|
||||
public function logoutAction()
|
||||
{
|
||||
//Suppression des critères de comptage en session
|
||||
require_once 'Scores/SessionCiblage.php';
|
||||
$session = new SessionCiblage();
|
||||
$session->clearCiblage();
|
||||
|
||||
//Suppression de l'identité
|
||||
Zend_Auth::getInstance()->clearIdentity();
|
||||
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$url = 'http://www.scores-decisions.com/';
|
||||
|
@ -103,4 +103,10 @@ class SessionCiblage
|
||||
return $this->{$element};
|
||||
}
|
||||
|
||||
|
||||
public function clearCiblage()
|
||||
{
|
||||
Zend_Session::namespaceUnset('ciblage');
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user