CodeIgniter Forums
help with CI Cookies ( Not Session) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: help with CI Cookies ( Not Session) (/showthread.php?tid=42558)



help with CI Cookies ( Not Session) - El Forum - 06-10-2011

[eluser]kev[/eluser]
Hi,

Is it possible to add more values to same cookie?

Example, first added value to cookie A is "Hello", i want to add "World to the same cookie but without erasing the "Hello" that was there?

is it possible or any other altenatives?

Thanks Smile


help with CI Cookies ( Not Session) - El Forum - 06-10-2011

[eluser]Twisted1919[/eluser]
set an array and serialize it.
get the serialized value and unserialize it obtaining your array.


help with CI Cookies ( Not Session) - El Forum - 06-10-2011

[eluser]kev[/eluser]
Hmmm have something in mind, will post the code once it's working ^^