I looked at system/core/Input.php:
function _fetch_from_array(&$array, $index = '', $xss_clean = FALSE)
{
if ( ! isset($array[$index]))
{
return FALSE;
}
if ($xss_clean === TRUE)
{
return $this->security->xss_clean($array[$index]);
}
return $array[$index];
}
function cookie($index = '', $xss_clean = FALSE)
{
return $this->_fetch_from_array($_COOKIE, $index, $xss_clean);
}
As far as I can tell, you cannot show all cookies with $this->input->cookie(). Only one at a time.
If you really want to see all the cookies, just try it var_dump($_COOKIE).
Or, if you need to show only one cookie, specify your_key:$this->input->cookie('your_key')
Hope this helps =)
Rocco source
share