Hi,

I have a strange problem with Apache::Session::MySQL. It create a session just fine, but it can't update itself. When I look at MySQL's binary log, I see the initial INSERT but I don't see any UPDATES:

INSERT INTO sessions (id, a_session) VALUES ('9176a7b8acbfdc5697059d9a4fd6046a','\0\0\0
9176a7b8acbfdc5697059d9a4fd6046a\0\0\0
_session_id');
DO RELEASE_LOCK("Apache-Session-9176a7b8acbfdc5697059d9a4fd6046a");
DO RELEASE_LOCK("Apache-Session-9176a7b8acbfdc5697059d9a4fd6046a");
DO RELEASE_LOCK("Apache-Session-9176a7b8acbfdc5697059d9a4fd6046a");
DO RELEASE_LOCK("Apache-Session-9176a7b8acbfdc5697059d9a4fd6046a");
DO RELEASE_LOCK("Apache-Session-9176a7b8acbfdc5697059d9a4fd6046a");


The code:

require DBI; # DataBase Interface, le "layer" pour se connecter à differentes bases de donnees
require CGI; # Le module CGI, qui contient certaines fonctions utiles
require Apache; # Le module Apache = mod_perl, l'interpreteur Perl inclu dans Apache
require Apache::Session::Mysql; # Un module pour gerer les sessions avec l'aide de MySQL
use Date::Format; # Pour des fonctions de date


my $session_id = $wquery->path_info();
$session_id =~ s/\///g;
...
$session{'lang'} = "fr";

And when I fetch the next page, $session{'lang'} is empty, the only key I have in %sessions is '_session_id'.

I use Apache::Session::MySQL 1.01 on Mac OS X Server 10.3.4, with Apache/1.3.29 and mod_perl/1.26. MySQL's version is 4.0.18 on Linux.


-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to