OpenXPKI::Server::Session::Driver::Database - Session implementation that
persists to the database
To use the global database handle
("CTX('dbi')":
my $session = OpenXPKI::Server::Session->new(
type => "Database",
);
To specify a different database (i.e. use a separate database
handle):
my $session = OpenXPKI::Server::Session->new(
type => "Database",
config => {
driver => "SQLite",
name => "/tmp/mydb.sqlite",
},
);
The methods in this class do not execute
"COMMIT"s on the database if it's configured
to reuse the global database handle. This is to make sure transcations started
in the core application logic are not disturbed.
If an own database handle is created, it's configured to do
"AUTOCOMMIT"s.
Please see OpenXPKI::Server::Session::DriverRole for a description of the
available methods.