diff --git a/include/library/Crunchbutton/Auth.php b/include/library/Crunchbutton/Auth.php index efc978f9b..de067ac8c 100644 --- a/include/library/Crunchbutton/Auth.php +++ b/include/library/Crunchbutton/Auth.php @@ -14,6 +14,8 @@ class Crunchbutton_Auth { Session::deleteToken($_COOKIE['token']); $this->session()->id_user = $sess->id_user; $this->session()->token = $_COOKIE['token']; + } else { + setcookie('token','',0,'/'); } }