CGI::Session::Driver::aggregator::Drivers - Drivers container for CGI::Session::Driver::aggregator
Adding a driver with extra arguments. driver_arguments will be used to instanctiate the driver. The driver must be an instance of CGI::Session::Driver.
$drivers = CGI::Session::Driver::aggregator::Drivers->new; $drivers->add('file', { Directory => '/tmp' }); $drivers->add('mysql', { Handle => $dbh });
NOTE: session data is read from drivers in the added order. In above example, reading from 'file' first, and then from 'mysql' (only when cannot read from 'file'). On the other hand, When writing session data, the order is 'mysql' -> 'file'.
To install CGI::Session::Driver::aggregator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Session::Driver::aggregator
CPAN shell
perl -MCPAN -e shell install CGI::Session::Driver::aggregator
For more information on module installation, please visit the detailed CPAN module installation guide.