How to grab and check cookies2 users found helpful
I would look at this.
I was told by a core team member "generally, you shouldn't be using them for anything other than session". I think you can still use them to read cookies, just not for setting them.
$ch = Core::make('cookie'); // get cookie $get_cookie = $ch->get('age'); // has cookie $has_cookie = $ch->has('age');
I have one strange problem with it though. I have an application that sends an ajax form, and in that action a cookie is set. On my laptop it works fine, on the hostingserver is doesn't work.
When I use the plain setcookie() it just works fine. So I could use that one, but that will not be accepted in a addon (but C5 itself uses setcookie more than once!).
Still puzzling along.....