Write Cookie:
$this->Cookie->write('countryName', 'India', false, 0); Argument Description sequence: cookie name, value, encrypted or not if set false means cookie will store as plain text.
Read Cookie:
echo $this->Cookie->read('countryName');
Output: India
$this->Cookie->write('countryName', 'India', false, 0); Argument Description sequence: cookie name, value, encrypted or not if set false means cookie will store as plain text.
Read Cookie:
echo $this->Cookie->read('countryName');
Output: India
No comments:
Post a Comment