way has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
I'm using Apache::Session::MySql but i can't make that works, it not save data except _session value
# This is a previous connection my $dbh = DBI->connect('DBI:mysql:database=test;host=localhost', 'root +', ''); $dbh->do(q{SET NAMES utf8}); our %session = (); tie %session, 'Apache::Session::MySQL', undef, { Handle => $dbh, LockHandle => $dbh }; $session{some} = "asdfa5s4fd5s45f4d56af5"; # It's not saved $dbh->disconnect;
In theory this must be work, but it doesn't, i used too tied(%session)->save but nothing happend, i'm not sure what is happening
I used a BLOB field type in the db to do more precise, but still not works
What's i doing wrong?
Thank you
SOLVED:
This problem may occurs when use InnoDB tables on MySql 6.0.2 Alpha Community NT Debug Log, becouse Apache::Session::MySql get lock to user level, so using MyIsam was solved!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache::Session::MySql don't save data
by Anonymous Monk on Feb 15, 2009 at 06:36 UTC | |
by way (Sexton) on Feb 15, 2009 at 16:34 UTC | |
|
Re: Apache::Session::MySql don't save data
by perrin (Chancellor) on Feb 15, 2009 at 19:09 UTC | |
by way (Sexton) on Feb 21, 2009 at 05:44 UTC |