A
A
Artyom2020-06-30 20:11:58
Node.js
Artyom, 2020-06-30 20:11:58

What is the best way to go when storing the session id?

  • save in cookies
  • save to redux store
  • create a session by separate means and save it there


I feel that I'm not asking very correctly, but if you know the answer to the question, please write it

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Belyaev, 2020-06-30
@Bikmay

The safest way is a cookie with the secure and http-only flags, only the server can work with it and it is transmitted only via https.
Everything else is quietly taken away by any third-party script on your site.

C
cython, 2020-06-30
@cython

Use localStorage or sessionStorage

A
apathy, 2014-10-25
@SlampD

Here - stackoverflow.com/questions/15386291/unable-to-com... offer solutions to this problem. Perhaps one of them will help you.

D
Dmitry Skrylnikov, 2014-10-23
@worlxxaker

try another IDEA for example eclipse or android studio, if there is also an error, then the problem is not in IDEA

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question