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