![]() |
Cookie values disappearing - 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: Cookie values disappearing (/showthread.php?tid=52337) |
Cookie values disappearing - El Forum - 06-06-2012 [eluser]Unknown[/eluser] I'm working on a search page that uses ajax controls to gradually refine a set of search terms. The current set of search terms is stored in a cookie called 'currentsearch', which is read and rewritten each time an ajax call is made. That part is working fine. Where I run into trouble is when the page is reloaded. The regular (non-ajax) controller can read the cookie just fine, but by the time the page is loaded the cookie's been set to 'b:0' (I'm using serialize() to store values in the cookie, so this may represent setting it to NULL). This happens even if I don't try to update the value of the cookie at all in the non-ajax controller. Thanks in advance, --Jacob Sewell |