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 👋
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 👋