Add additional functions for working with cookies.
Copy MY_cookie_helper.php to /application/helpers/, and load helper trought CodeIgniter Loader class.
$this->load->helper('cookie');
Note: In case if you subclass_prefix
was changed in /application/config/config.php, filename prefix MY_ should be renamed accordingly.
This function determinate if cookie is enabled in client browser, by counting currently set cookies. If nothing was found, test cookie will be set.
is_cookie_enabled();
Note: CodeIgniter URL helper and Input class is used in this function.