I am testing my API in Postman and am having trouble simulating a log out.
If I do a call to delete the session cookie,
the session cookie is still there afterwards, and I'm still able to access routes that require authentication.
The route handler on the server is:
server.route({
method: 'DELETE',
path: '/sessions/_current',
handler: function(req, reply){
req.auth.session.clear();
reply({}).code(204);
}
});
This is Node.js with Hapi but it shouldn't matter.
Is there a way to delete all the cookies in Postman or certain cookies manually?