Testing Route using Postman

Step 1: Enter the url in the postman ,”http://localhost:3000/set-cookie”. This will set the cookie username and value as “JhonDoe”.

Step 2: Hit the url “http://localhost:3000/view-cookies“. You will get the cookie value which was set in above step.

Response Process:

All steps to set cookie

How to Set, View and Manipulate Cookies using ‘Response.cookie()’ and Postman ?

Cookies enable websites to store small pieces of information on a user’s device. It helps enhance user experience and enable various functionalities. In this article, we’ll explore a simple way to manipulate cookies using the ‘Response.cookie()’ function

Similar Reads

Prerequisite:

Basics of Nodejs Basics of Expressjs One should be able to make a basic express server. How to use Postman....

Steps to set and view cookie:

Step 1: Initiallized an Express application and install the required dependencies....

Testing Route using Postman:

...

Conclusion:

Step 1: Enter the url in the postman ,”http://localhost:3000/set-cookie”. This will set the cookie username and value as “JhonDoe”....