I went through some tips about read cookies with Regex. Then I found a jQuery plugin to handle that like json. But way isn’t cookies stored in json? Isn’t json more convient?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Cookie header itself is a “normal” HTTP header, and follows the usual conventions there, which were established before JSON became popular.
The value of the cookie is completely up to your application, you could use JSON there.