You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.
The thing is that options object is extended in removeCookie with {expires: -1}.
Imagine the following code:
varoptions={path: myPath,domain: myDomain}// Then somewhere in the code:$.cookie(key,value,options)// And then somewhere in another place:$.removeCookie(key,options)// At this moment our options are extended with {expires:-1}, so:$.cookie(key,value,options)$.cookie(key)// undefined: it expired right when we wrote it!
The fix is to extend options in removeCookie the same way it's done on writing:
The thing is that
options
object is extended inremoveCookie
with{expires: -1}
.Imagine the following code:
The fix is to extend options in
removeCookie
the same way it's done on writing:Sorry for no pull request.
The text was updated successfully, but these errors were encountered: