public function __construct($options = [])
{
// initialize the handlersocket database
if (empty($options)) {
$this->init($this->options);
} else {
$this->init($options);
}
//set object as the save handler
session_set_save_handler([$this, 'open'], [$this, 'close'], [$this, 'read'], [$this, 'write'], [$this, 'destroy'], [$this, 'gc']);
}