You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "R. D. Stoll" <Ro...@t-online.de> on 2000/08/19 15:18:19 UTC
Session problems
Hi,
I have some trouble getting session management to work. I'm using
Apache Session 1.0, Embperl 1.3b3 with mod_perl 1.23 on Apache 1.3.12 on
Win98.
I have managed to start session-handling only when I am using
NullLocker.
I use the following entries in httpd.conf:
PerlSetEnv EMBPERL_DEBUG 1
PerlSetEnv EMBPERL_LOG /Apache/logs/embperl.log
PerlSetEnv EMBPERL_SESSION_CLASSES "FileStore NullLocker"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory= /Apache/tmp"
PerlModule HTML::Embperl
In this way it works. When started, Apache says: Emperl session
management enabled(1.xx).
When I am affecting %udat a session-id is generated, a cookie is sent
and my user data is persistent. OK.
But when I tried to use SysVSemaphoreLocker I get a:
Cannot require Apache::Session::SysVSemaphoreLocker at
c./perl/site/5.6.0/lib/ HTML/Embperl/session.pm line 134
Another problem: The path I configerd with:
PerlSetEnv EMBPERL_SESSION_ARGS "Directory= /Apache/tmp"
is not accepted. Embperl says Internal Server Error, directory not
found...
until I change in FileStore.pm line 18 the path from
#$Apache::Session::FileStore::Directory = '/tmp';
to:
$Apache::Session::FileStore::Directory = '/Apache/tmp';
What is going wrong?
Thanks
Rolf
Re: Session problems
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I have some trouble getting session management to work. I'm using
> Apache Session 1.0, Embperl 1.3b3 with mod_perl 1.23 on Apache 1.3.12 on
> Win98.
>
> But when I tried to use SysVSemaphoreLocker I get a:
> Cannot require Apache::Session::SysVSemaphoreLocker at
> c./perl/site/5.6.0/lib/ HTML/Embperl/session.pm line 134
>
I guess there is no support for SysV compatible sempahores on Win98.
> Another problem: The path I configerd with:
> PerlSetEnv EMBPERL_SESSION_ARGS "Directory= /Apache/tmp"
remove the space between the = and the leading /, because space is the
separtor between multiple parameters.
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/Apache/tmp"
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------