I write to cookies using jquery. I write down the user object, which has properties.
I write it this way: $.cookie('user', JSON.stringify(user), { expires: 7, path: '/' });
I see the following in cookies: %7B%22login%22%3A%22ADMIN%22%2C%22user_id%22%3A1%2C%22role%22%3A%22user%22%7D .
Tried to write without jquery writes fine. But I would like to use jquery cookie. Tell me how to fix this thing?
Percent-encoding( en.wikipedia.org/wiki/Percent-encoding ), for the sake of security. - user207618