jquery cookies

For anyone else having fun working with cookies in jquery who decided to use jquery.cookie as their plugin of choice; if you create a cookie
[javascript]
$.cookie(‘ro’,’awesome’);
[/javascript]
And then try to change it
[javascript]
$.cookie(‘ro’,’lame’);
[/javascript]
you may actually end up with a cookie that contains BOTH values.

Instead, try jquery.cookies (plural!) which does seem to update correctly. Or just write your own plugin; cookie manipulation isn’t that tough!

Leave a Reply

Your email address will not be published. Required fields are marked *