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! :)