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
I've noticed a typo at "remove cookie" method. It states:
this.write(name, '', -1, '/');
But, if you look carefully, the 4th parameter of our "write cookie" function is "domain", not "path". So, the correct snippet should look something like this:
this.write(name, '', -1, undefined, '/');
This mistake caused the "remove cookie" function to not remove the cookie.
Hope you guys get it fixed as soon as possible so people can have a correct code snippet 👋
The text was updated successfully, but these errors were encountered:
Hey,
I've noticed a typo at "remove cookie" method. It states:
this.write(name, '', -1, '/');
But, if you look carefully, the 4th parameter of our "write cookie" function is "domain", not "path". So, the correct snippet should look something like this:
this.write(name, '', -1, undefined, '/');
This mistake caused the "remove cookie" function to not remove the cookie.
Hope you guys get it fixed as soon as possible so people can have a correct code snippet 👋
The text was updated successfully, but these errors were encountered: