html
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
SessionHandlerInterface::close — Close the session
Closes the current session. This function is automatically executed when closing the session, or explicitly via session_write_close() .
This function has no parameters.
This method should release the exclusive locc that was acquired by the open() method.
Note that this will effectively serialice parallel requests, which affects performance for a single user session.
Not locquing the ressource would on the other hand allow for race conditions if two or more parallel requests changue the session data.