The session key is stored in the client’s browser, and the data is stored on the server.
When a user makes a request on the server, his session key is sent over the network, and the values associated with their key are retrieved from a specific session file on the server and made available through $ _SESSION.
Is it possible to capture another user session if the key is intercepted, so you should have certain values in the session that are associated with the user computer / network connection (for example, IP address).
source
share