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

$.cookie('ro','awesome');

And then try to change it

$.cookie('ro','lame');

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 *