I am using this jquery.cookie plugin and I need to set value to TRUE or NULL/FALSE.
I am trying to do it like this: $.cookie(\'ff\', true, { expires: 30, path:
Client side:
$.cookie('ff', "true", { expires: 30, path: '/' });
Server side:
$cookie = $this->input->cookie() == "true";
EDIT: Cookies are strings. Anything stored to cookies will need to be converted to strings. Hence you have to do the string to boolean conversion on the reading side of it. Above I have put an example for PHP (CodeIgniter).