• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why doesn't my cookie store serialize objects

 
Fritz Largosa
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My cookie does not store the complete serialize object. It stores part of the string but not the whole string, my total string lenght is less than 4k. I do not know what could possibly be wrong. If anybody has any suggestions please reply. Thanks.
 
Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could this be tripping you up?

With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons.

What does your object look like when serialized?
 
Fritz Largosa
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found a solution I just have to convert the string into UTF-8 before storing it in the cookie. Thanks for the help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!