public function __construct(\SessionHandlerInterface $handler) { $this->wrapper = $handler instanceof \SessionHandler; $this->saveHandlerName = $this->wrapper || $handler instanceof StrictSessionHandler && $handler->isWrapper() ? \ini_get('session.save_handler') : 'user'; }