I am using Codeigniter 3.1.6 and I am using the provided library to set a cookie.
$this->load->helper(array('cookie', 'url'));
set_cookie('cookie_policy', true, '2592000', 'host', '/', '', TRUE);
The cookie is set correctly and I can see that in the browser. I can retrieve it but after I close my browser the cookie cant be get anymore. However, in the browser I can see it. I tried to get it with just plain PHP script but still was not not working.
Anyone have this problem before?
Thanks in advance.