How to delete session cookie in Postman? Ask Question

How to delete session cookie in Postman? Ask Question

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?

ベストアンサー1

Postman 4.0.5 has a feature named クッキーの管理下にある送信Chrome とは別に Cookie を管理するボタンのようです。

ここに画像の説明を入力してください

おすすめ記事