Welcome Guest, Not a member yet? Register   Sign In
Cookie values disappearing
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB