title: Why are my cookies containing JSON occasionally malformed
body: <p>We're using a cookie for some non-sensitive convenience data about our site visitors. We emit three values:
  1) creation date (in ticks),
  2) user data, JSON serialized,
  3) validation hash</p>
  
  <p>We're seeing a fair number of requests coming in with only half a cookie. They contain the full date and truncated user data, something like {"Foo":false,"Bar":0</p>
  
  <p>This is a high-volume site, and the number of bad cookies looks to be about 1-3 per minute (out of 8-10 thousand page requests per minute).</p>
  
  <p>Anyone experience anything similar? I'm wondering if we have a browser that doesn't like the JSON, or maybe the header is getting truncated by some browsers, or maybe there's a JSON serializer bug. We're using the JavaScriptSerializer in .NET 3.5.</p>