How to delete cookie session in Postman?

I am testing my API in Postman and am having problems simulating output .

If I make a call to delete a session cookie, postman request
The session cookie is still there , and I can still access routes that require authentication.

The route handler on the server:

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 does not matter.

Is there a way to delete all cookies in Postman or certain cookies manually ?

+88
postman
Feb 03 '15 at 17:39
source share
10 answers

Manual deletion in the Chrome browser deletes cookies from the Postman.

In your Chrome browser go to chrome://settings/cookies

Find the cookie and delete it

Edit: as per Max890 comment below (in my version of Google Chrome (version 63)) now it's chrome://settings/content/cookies Then go to “View all cookies and site data”

+64
May 2 '15 at
source share

Postman 4.0.5 has a “Cookie Management” feature located under the “Submit” button, which manages cookies separately from Chrome. It seems that

enter image description here

+81
Mar 23 '16 at 20:05
source share

As @markus said, use the "Cookie Manager" and delete the cookies. enter image description here

If you want to know how to configure the destruction of cookies in a postman, you should check the Postman Echo service https://docs.postman-echo.com/

There you will find a complete explanation of how to set, receive and delete these cookies.

Check it out at: https://docs.postman-echo.com/#3de3b135-b3cc-3a68-ba27-b6d373e03c8c

Give it a try.

+10
Jun 19 '17 at 20:35
source share

The Native Postman app has a “cookie manager”, so this is not a problem,

But there is no Postman extension for Chrome

So the solution is simply to install a native postman

Postman for Linux, Mac, and Windows

+8
Jul 23 '17 at 16:34
source share

Is mail interceptor enabled? Switching will forward all requests and responses through the Chrome browser.

Interceptor - https://www.getpostman.com/docs/capture Documentation of cookies - http://blog.getpostman.com/index.php/2014/11/28/using-the-interceptor-to-read-and -write-cookies /

+6
Feb 10 '15 at 7:05
source share

Please note that this answer only applies to the Postman stand-alone user interface , not the Postman app / add-on for Chrome.

How to clear the cache in Postman (so you need to log in again when requesting a token):

  • go to View: Show DevTools
  • go to the "Application" tab, then to the "Clear storage" menu in the left menu
  • deselect all options except cache storage, then click "Clear site data"
  • restart the postman
  • you will be prompted to log in again when you request a new token
+3
Jul 01 '17 at 1:30
source share

Have you tried Clear cache extension ? Give it a try. It clears the application cache, downloads, file systems, form data, history, local storage, passwords and much more, available in the parameter settings.

Update : try answering https://superuser.com/a/232794

I'm not sure how to do this in Postman. I used to close the entire browser and reset the server for re-authentication. Logging out has never been tested since it was an API service.

0
Apr 6 '15 at 18:39
source share

in Chrome, right click -> Check item. Go to the Active Resource Tracking tab, if you haven’t already. Now the left sidebar is down until you see "Cookies", click under your domain name and, to delete a cookie, right-click on it and "Delete"

0
Nov 10 '16 at 2:56
source share

You can use the Postman interceptor. This can be added to the chrome extension at this link: https://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo

This allows you to send requests that use browser cookies through the Postman application. It can also send headers, which are usually limited to Chrome, but are crucial for testing the API.

You can also enable the interceptor next to the orange sync icon You can also turn on the interceptor, which is located next to the orange sync icon.

0
Apr 20 '17 at 10:08
source share

I tried to clear the chrome cookies to get rid of the postman cookies, as one of the answers given here. But that did not work for me. I checked my version of the postman, found that this is an old version 5.5.4. So I just tried updating Postman to the latest version 7.3.4. Cool, the problem is fixed !!

0
Jul 24 '19 at 3:46
source share



All Articles