iam debugging an application which sets cookie via jquery.
$.cookie("cookie_name",'s',{ path: '/'});
how can i fetch the cookie from codeigniter.?
$this->input->cookie('cookie_name', TRUE);
is not returning anything. please help.
iam debugging an application which sets cookie via jquery.
$.cookie("cookie_name",'s',{ path: '/'});
how can i fetch the cookie from codeigniter.?
$this->input->cookie('cookie_name', TRUE);
is not returning anything. please help.
Check you have loaded cookie helper
like,
$this->load->helper('cookie');
before using it.
If you loaded it then try this print_r($_COOKIE);
to check whether your cookie
is set or not.
Read http://ellislab.com/codeigniter/user-guide/helpers/cookie_helper.html