fireartist has asked for the wisdom of the Perl Monks concerning the following question:
I've tested logging into the database via a console and gaining a lock in the same way as CGI::Session::MySQL is doing select get_lock('unique', 10) and it succeeds ( so does release_lock.)use strict; use warnings; use CGI::Session; use DBI; $datasource = 'dbi:mysql:database:hostname'; $user = 'username'; $pass = 'password'; $dbi = DBI->connect($datasource, $user, $pass, { ShowErrorStatement => 1, RaiseError => 1, PrintError => 1, AutoCommit => 0})); $session = new CGI::Session( "driver:MySQL", $sid, {Handle => $dbh} ));
I'm posting this so others may benefit from the clearing up of the confusion...- though it doesn't give any suggestions as to how to fix it.
I was playing with a package to create MySQL tables, and the 'sessions' table created was not precisely as expected by CGI::Session.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Session::MySQL lock problem
by erasei (Pilgrim) on Oct 16, 2003 at 14:07 UTC | |
by fireartist (Chaplain) on Oct 16, 2003 at 14:32 UTC | |
|
Re: CGI::Session::MySQL lock problem
by fireartist (Chaplain) on Oct 16, 2003 at 15:16 UTC |