Help for this page

Select Code to Download


  1. or download this
    my $dbh=DBI->connect("DBI:mysql:database=sessions;host=localhost","roo
    +t", "");
    my $opts = {Handle => $dbh};
    tie my %session, 'Apache::Session::MySQL', $id, $opts;
    
  2. or download this
    my $ops = {
     DataSource => 'dbi:mysql:sessions',
    ...
     Password   => ''
    };
    tie my %session, 'Apache::Session::DBI', $id, $opts;