Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Sessions are most often held on cookies: with each request, the browser passes a cookie with the session ID, and php pulls out of its storage - files, Redis, database, as you wish - session data for this id.
Those. the difference is where to store the session data itself: on the server or on the client.
Everything that comes from the client can be faked. Therefore it is better to use sessions.
Usually these are related things. Otherwise, how do you determine which session a given user belongs to? Unless, of course, php-session-trans-id is used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question