carhartl/jquery-cookie — Issue #48: Updating cookie requires you to specify your options again
Author: Lingonmirakel
Created: 2012-02-20 15:04:30+00:00
State: open

Hi!

I found that when you update an existing cookie you have to specify your options again to not get the default ones. Example:

> $.cookie('my_cookie', 'foo', { expires: 30, path: '/' });
> $.cookie('my_cookie', 'bar');

Caused my quite an headache for a while :) It would be nice if this wasn't needed, if at all possible.