Не могу удалить данные авторизации юзера. Точнее не удаляются куки. Если авторизоваться только по сессии то все нормально.
Module_Cabinet::logout()
public function logout()
{
if (!empty($_POST)) {
if (isset($_POST['logout'])) {
$this->user->logout();
header('Location: ' . $this->path['home_url']);
exit;
}
header('Location: ' . $this->path['home_url'] . 'cabinet');
exit;
} else {
$this->tpl->title = $this->lng->logout;
$this->tpl->set_output($this->tpl->load('logout'));
}
}--
User::logout()
public function logout()
{
$this->id = 0;
$this->data = array();
setcookie("cuid", "");
setcookie("cups", "");
unset($_SESSION['uid']);
unset($_SESSION['ups']);
}А вот как ставятся куки
setcookie("cuid", $cuid, time() + 3600 * 24 * 365);
setcookie("cups", $cups, time() + 3600 * 24 * 365);