Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler::__construct
Constructor.
List of available options: * db_table: The name of the table [required] * db_id_col: The column where to store the session id [default: sess_id] * db_data_col: The column where to store the session data [default: sess_data] * db_time_col: The column where to store the timestamp [default: sess_time]
Signature
public function __construct(PDO
$pdo,
array
$dbOptions )
Parameters
$pdo
— \PDO- A \PDO instance
$dbOptions
— array- An associative array of DB options
Errors/Exceptions
-
InvalidArgumentException
- When "db_table" option is not provided