PHP Session Locking: How to Prevent Blocking Requests

Today I learned about β€œPHP Session Locking”: PHP writes its session data to a file by default. When a request is made to a PHP script that starts the session (session_start()), this session file is locked. What this means is that if your web page makes numerous requests to PHP scripts, for instance, for loading […]