Jump to content

[Résolu] Redirect après logout


Recommended Posts

Bonsoir,

Dans le contrôleur classes/FrontController.php, ligne 116 environ :

       if (isset($_GET['logout']) OR ($cookie->logged AND Customer::isBanned((int)$cookie->id_customer)))
       {
           $cookie->logout();
           Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL);
       }
       elseif (isset($_GET['mylogout']))
       {
           $cookie->mylogout();
           Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL);
       }



Bien cordialement

Link to comment
Share on other sites

Remplacez par ceci :

if (isset($_GET['logout']) OR ($cookie->logged AND Customer::isBanned((int)$cookie->id_customer)))
       {
           $cookie->logout();
           //Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL);
           Tools::redirect('authentication.php');
       }
       elseif (isset($_GET['mylogout']))
       {
           $cookie->mylogout();
           //Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL);
           Tools::redirect('authentication.php');
       } 



Bien cordialement

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...