• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookie values disappearing

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.