Persistent cookie exists but not in FUEL (or CI).
I am trying to store a persistent cookie (such as a user name to populate a login field - remember me feature) even after the browser closes. But in using get_cookie() or even $_COOKIE, it does not exist, however, HTTP sniffers (Firefox dev tools and Live HTTP headers) show that it really is there.
Here is my code to set it:
$ckie = array(
'name' => 'mycook',
'value' => 'thisisatest',
'expire' => (3600*24),
'path' => WEB_PATH
);
set_cookie($ckie);
Am I missing something obvious?
Thanks in advance.
Comments
Also, as an FYI, the cookie functionality is native to CodeIgniter:
http://codeigniter.com/user_guide/helpers/cookie_helper.html