public function __construct($options = null)
{
if (!isset($options['collection'])) {
throw new Exception("The parameter 'collection' is required");
}
session_set_save_handler([$this, 'open'], [$this, 'close'], [$this, 'read'], [$this, 'write'], [$this, 'destroy'], [$this, 'gc']);
parent::__construct($options);
}