Is it possible for a webserver to assign a PHPSESSID currently used by another client at the moment of attribution?
Or a check is made before attribution ?
Is it possible for a webserver to assign a PHPSESSID currently used by another client at the moment of attribution?
Or a check is made before attribution ?
This ID is generated automatically when you make a session_start.
session_start();
If you know some ID you can force to assign that to another instance/client, but in my opinion that could be a security risk, I don't recommend you to do that.
Follow logic should work theoretically:
Close and save current
session_write_close();
Set new session ID
session_id(YOUR_SESSION_ID_HERE);
Run new session
session_start();