Example #1
0
 public function logout()
 {
     // déconnexion du site
     $auth = new AuthentificationManager();
     $auth->logUserOut();
     $this->redirectToRoute('home');
 }
 public function logout()
 {
     $authentificationManager = new AuthentificationManager();
     $userManager = new UserManager();
     $authentificationManager->logUserOut($w_user);
     $this->redirectToRoute('login');
 }
Example #3
0
 public function logoutUser()
 {
     // echo "On entre dans le LoginController-> Method logoutUser ";
     $authentificationManager = new AuthentificationManager();
     $authentificationManager->logUserOut();
     $this->redirectToRoute('home');
 }
Example #4
0
 public function logout()
 {
     // Instanciation d'un object de type AuthentificationManager
     $authentificationManager = new AuthentificationManager();
     $authentificationManager->logUserOut();
     // Redirection
     $this->redirectToRoute('home');
 }
Example #5
0
 public function logout()
 {
     // Instanciation d'un object de type AuthentificationManager
     $authentificationManager = new AuthentificationManager();
     $authentificationManager->logUserOut();
     // création d'un msg de déconnexion en session
     $_SESSION['message'] = "Vous avez bien été déconnecté.";
     // Redirection
     $this->redirectToRoute('home');
 }
Example #6
0
	/**
	 * Déconnexion
	 */
	public function logout() {
		// récupération d'un objet sécurité
		$auth = new AuthentificationManager();
		// déconnexion
		$auth->logUserOut();
		// destruction du panier
		unset($_SESSION["panier"]);
		// retour à l'accueil
		$this->redirectToRoute('home');
	}
 /**
  * Déconnexion
  */
 public function close()
 {
     // récupération d'un objet sécurité
     $auth = new AuthentificationManager();
     //déconnexion
     $auth->logUserOut();
     // Fermeture de session
     session_destroy();
     //retour à l'accueil
     $this->redirectToRoute('home');
 }
Example #8
0
 public function logout()
 {
     $authentificationManager = new AuthentificationManager();
     $authentificationManager->logUserOut();
     $this->redirectToRoute('home');
 }
 public function logout()
 {
     $manager2 = new ProfilManager();
     $manager2->userIsOffline($_SESSION['user']['id']);
     $auth = new AuthentificationManager();
     $auth->logUserOut();
     $this->redirectToRoute('home');
 }
 public function logout()
 {
     $am = new AuthentificationManager();
     $am->logUserOut();
     $this->redirectToRoute('login');
 }
Example #11
0
 public function logout()
 {
     if (isset($_POST)) {
         $auth = new AuthentificationManager();
         $auth->logUserOut();
         // fonction définie dans W/Security/AuthentificationManager.php ligne 52
         $this->redirectToRoute('home');
     }
 }