public function LogOut() { $user = new DBase(); $user->clearToken($_COOKIE['user']); setcookie("user", "", time() - 3600); setcookie("token", "", time() - 3600); header('Location: /'); }