V
V
Vitaly2021-10-06 17:23:18
JavaScript
Vitaly, 2021-10-06 17:23:18

How to save the session on http request in node js?

All the best!
Tell me how, when making an http request in node using a standard or third-party module (for example, node-fetch), save the session for the next requests. That is, I have the first http request - this is the login, then with this logged in session, you can send the following requests

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexandroppolus, 2021-10-06
@Alexandroppolus

Usually the session id comes in a cookie.
Save cookies, send in subsequent requests, be like a browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question