cookie([$index = NULL[, $xss_clean = NULL]])
Parameters:
$index (mixed) – COOKIE name
$xss_clean (bool) – Whether to apply XSS filtering Returns:
$_COOKIE if no parameters supplied, otherwise the COOKIE value if found or NULL if not Return type:
mixed
This method is identical to post() and get(), only it fetches cookie data:
$this->input->cookie('some_cookie');
$this->input->cookie('some_cookie, TRUE); // with XSS filter
To return an array of multiple cookie values, pa