CGI::Session::Driver::aggregator - CGI::Session driver to aggregate some CGI::Session drivers.


CGI-Session-Driver-aggregator documentation  | view source Contained in the CGI-Session-Driver-aggregator distribution.

Index


NAME

Top

CGI::Session::Driver::aggregator - CGI::Session driver to aggregate some CGI::Session drivers.

SYNOPSIS

Top

    use CGI::Session;
    use CGI::Session::Driver::aggregator::Drivers;
    use DBI;

    $dbh = DBI->connect('DBI:mysql:cgi_session;host=localhost', 'root', '');
    $drivers = CGI::Session::Driver::aggregator::Drivers->new;
    $drivers->add('file', { Directory => '/tmp' });
    $drivers->add('mysql', { Handle => $dbh });
    $s = CGI::Session->new('driver:aggregator', $sid, { Drivers => $drivers });
    $s->param(hey => 'Blur blur blur!');
    # ----> Store datas into mysql and file!!

    $value = $s->param('hey');
    # ----> Read datas from file (When cannot find, then from mysql)

DESCRIPTION

Top

aggregator stores session data into anything to be set up.

DRIVER ARGUMENTS

Top

The only supported driver argument is 'Drivers'. It's an instance of CGI::Session::Driver::aggregator::Drivers.

REQUIREMENTS

Top

CGI::Session

AUTHOR

Top

Kazuhiro Oinuma <oinume@cpan.org>

COPYRIGHT AND LICENSE

Top


CGI-Session-Driver-aggregator documentation  | view source Contained in the CGI-Session-Driver-aggregator distribution.