Constructor.
List of available options:
\PDO $pdo A \PDO instance:
array $dbOptions An associative array of DB options:
\InvalidArgumentException When "db_table" option is not provided
public function __construct(\PDO $pdo, array $dbOptions = array()) {
if (!array_key_exists('db_table', $dbOptions)) {
throw new \InvalidArgumentException('You must provide the "db_table" option for a PdoSessionStorage.');
}
$this->pdo = $pdo;
$this->dbOptions = array_merge(array(
'db_id_col' => 'sess_id',
'db_data_col' => 'sess_data',
'db_time_col' => 'sess_time',
), $dbOptions);
}