Hello all,
I found a problem this morning is that a cookie set with a domain cannot been removed by delete() function:
$expire = time() + 86400 * $this->config->user->rememberDays;
$this->cookies->set('RMU', $user->id, $expire, "/", false, $this->config->cookie->defaultDomain);
$this->cookies->set('RMT', $token, $expire, "/", false, $this->config->cookie->defaultDomain);
It's not work use:
if ($this->cookies->has('RMU')) {
$this->cookies->get('RMU')->delete();
}
if ($this->cookies->has('RMT')) {
$this->cookies->get('RMT')->delete();
}
What's the problem?