I do have a CI project in which's home function I check, if a cookie already exists. If so, the user should be redirected. This works fine for example on my linux machine (Chrome), but not on my Mac (Chrome) - and I have no clue why.
This is the code:
$session = $this->session->all_userdata();
if(array_key_exists('id', $session)) {
redirect(site_url("loggedin"), "refresh");
} else {
/* set cookie */
Thanks