in reply to Session Problems

I am pretty sure you need to put in the LockDataSource info as well. Below is a snippet from how I use Apache::Session ( I'm sorry but I am not familiar with Mason ).
$dbtype = 'mysql'; $dbname = 'somedb'; $dbname = 'localhost'; $dbuser = 'username'; $dbpass = 'password'; tie %session, 'Apache::Session::MySQL', $id, { DataSource => "DBI:$dbtype:$dbname:$dbhost", UserName => $dbuser, Password => $dbpass, LockDataSource => "DBI:$dbtype:$dbname:$dbhost", LockUserName => $dbuser, LockPassword => $dbpass, } or die "Can't tie the session ", %session, ": $!";
EEjack

Replies are listed 'Best First'.
Re: Re: Session Problems
by dstar (Scribe) on Aug 15, 2001 at 08:51 UTC
    I can't find LockDataSource in Apache::Session::DBIStore anywhere. Is that a MySql specific thing?
      No, actually the Lock schtuff is in there to satisfy Apache::Session's need for a lock. I just don't grok the documentation on Apache::Session, so I found that just reading through the modules gave me better insight into getting it working, and it took a while.

      I didn't see a module Apache::Session::DBIStore, there is Apache::Session::Store::DBI, but that should be accessed through another module (like Apache::Session::Mysql or Apache::Session::Postgres ) as they also use the Apache::Session::Lock modules that are most appropriate.

      Or at least I think so, the docs are lacking in the explaining as far as I am concerned.

      EEjack