clear information de ciblage

This commit is contained in:
Michael RICOIS 2012-01-03 10:44:45 +00:00
parent 5d93818bae
commit b73d2a946d
3 changed files with 17 additions and 2 deletions

View File

@ -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('./');
}

View File

@ -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/';

View File

@ -103,4 +103,10 @@ class SessionCiblage
return $this->{$element};
}
public function clearCiblage()
{
Zend_Session::namespaceUnset('ciblage');
}
}