Skip to content

Cookie Session - destroy() does not destroy session #466

@marcinc81

Description

@marcinc81

Hi, today I've found some issue with req.session().destroy(). According to the doc it shall remove all data from session, but actually it does nothing. Session cookie is still there with all variables. unset() removes all variables from session, but leaves empty cookie - I expected this behavior.

This is my code:

        group.get("/logout", (req, res) -> {
            req.session().destroy();
            res.redirect("/");
        });

Cheers! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions