P
P
pegas2017-08-13 15:29:27
PHP
pegas, 2017-08-13 15:29:27

How to determine the session of an individual user?

Each user has his own session ID and his own data in sessions.
Session_start(); is used to find the ID of an existing session, but how does this function determine which user session is being used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kornilov, 2017-08-13
@1PeGaS

From the user's browser, an identifier is transmitted in the request, by which the user is determined. session_start() only opens the session, but any access to session variables already returns their value by user ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question