Skip to content

Typo at Remove Cookie code snippet #31

@viniaxt

Description

@viniaxt

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 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions