Just following up on this. I tried using readSession($id) as suggested, but I get the following error:
session_start(): Failed to read session data: user (path: )
I’m not entirely sure why I can’t extend this method without causing an error. It is marked as @internal in the comments but I still don’t see why I can’t extend it.
Anyway, current solution is this:
* Moves session data into a database table to facilitate load balancing.
* Uses a mutex to prevent dirty reads on the database (stock duplication bug).
class DbSessionMutex extends DbSession
public function open()
$this->mutex = 'session-mutex-' . session_id();
public function close()