Answer the question
In order to leave comments, you need to log in
The user has a session ID stored in a cookie. So if an attacker gets to the victim's computer, he can just download the cookie for himself?
Hello. Understanding sessions and cookies. I read the answers here:
https://ru.stackoverflow.com/questions/90280/%D0%A... I
was specifically interested in this paragraph:
Typically, sessions are implemented using cookies and session identifiers. Those. the server, for its part, creates a unique identifier, for example, "1a2b3c" (the session_id you asked about), and asks the client to remember it. Usually - with the help of cookies, saying something like Set-Cookie: PHPSESSID=1a2b3c (where "PHPSESSID" is the name of the session, usually it is only one, you rarely need to run several sessions in parallel). For its part, the server somewhere (depending on the implementation, sometimes it's a file, for example, /tmp/1a2b3c, sometimes a database entry, sometimes something else) stores various data that it is ordered to associate with this session. For example, username.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question