From a548eaeae558787e40918cf836bd7799a9982ece Mon Sep 17 00:00:00 2001 From: arzynik Date: Tue, 24 Jul 2012 23:00:56 -0700 Subject: [PATCH] kill bad cookies --- include/library/Crunchbutton/Auth.php | 2 ++ 1 file changed, 2 insertions(+) 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,'/'); } }