> Kimbro> I'm trying to setup Apache::Session under Embperl with a MySQL
> Kimbro> datastore. I have multiple machines that will be serving
> the site thus
> Kimbro> all machines will access the datastore. In the
> documentation it says to
> Kimbro> use the DBIStore with a DaemonLocker which is fine.
> However there seems
> Kimbro> to be no documentation on how to use the DeamonLocker.
Yes, documentation of Apache::Session is not the best side of the module...
You have to take a look at the source on your own...
> I see it is
> Well, I've ended up using NullLocker. I still don't understand how
> Apache::Session could work. Any lock-releasing is done ONLY in DESTROY
> method, and while it should perform excellently in CGIs, I wonder how
> locks ever gets released in mod_perl environment...
>
In normal scripts you create a session object and destroy it at the end of
your script. Embperl goes a differnt way. It uses the cleanup method of
HTML::Embperl::Session (which is a subclass of Apache::Session; in Embperl
1.2b11, older version had used different names, but the same code). The
cleanup method will make sure that all locks are released. It works, I use
it on my own. (DBIStore and SysVSemaphoeLocker, I don't have tried
DeamonLocker)
Gerald