Session
Information the server keeps about a visitor from one request to the next
Full explanation PHP keeps a small file on the server for every visitor, and the browser holds only its identifier, in a cookie. The function session_start() opens the file and locks it until the script ends, so all the requests of the same visitor run one after the other. In SQL Server the same word means a connection to the database, and the two have nothing to do with each other.
Why remember it The lock is on it, so the queue belongs to one visitor
Where it appears in the post
- Two locks that do not know each other: why a PHP request waits when the server is free
- 1. The first lock: PHP's session
- The tools: what locks, what releases, what shows
- Review questions — with answers
- How does the server remember me from one request to the next?
- Sources for further reading and checking