You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by kb...@wharton.upenn.edu on 2000/07/20 19:49:22 UTC

Problem configuring sessions

I use Embperl 1.2.1 under mod_perl. Apache::Session is installed.

I've set up session handling in httpd.conf as follows:

PerlSetEnv EMBPERL_SESSION_CLASSES "File File"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp/session/store LockDirectory=tmp/session/lock"

When I restart httpd the error log says OK:

[Thu Jul 20 20:25:06 2000] [notice] SIGHUP received.  Attempting to restart
[Thu Jul 20 20:25:06 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 configured -- resuming normal operations

However, when I run a test page that puts a value in %udat the following is logged:

[6459]SES:  Embperl Session management enabled (1.xx)
[Thu Jul 20 20:25:29 2000] [error] [6459]ERR:  24: Line 21: Error in Perl code: Can't locate object method "generate_id" via package "HTML::Embperl::Session" at
/usr/lib/perl5/site_perl/5.005/i386-linux/HTML/Embperl/Session.pm line 184.
[Thu Jul 20 20:25:29 2000] [error] Can't call method "acquire_write_lock" on an undefined value at /usr/lib/perl5/site_perl/5.005/Apache/Session.pm line 546.

What is this method generate_id? Looking through Apache::Session, I found a "generate" method,
but not "generate_id".

ANY guidance will be appreciated.

Re: Problem configuring sessions

Posted by kb...@wharton.upenn.edu.
> did u copy these values directly out of your config because u do not show a leading slash on the LockDirector?.  should probably be:
> 
> PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp/session/store LockDirectory=/tmp/session/lock"

This is true. I fixed that but the same error appears.

Re: Problem configuring sessions

Posted by ___cliff rayman___ <cl...@genwax.com>.
did u copy these values directly out of your config because u do not show a leading slash on the LockDirector?.  should probably be:

PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp/session/store LockDirectory=/tmp/session/lock"


--
___cliff rayman___cliff@genwax.com___http://www.genwax.com/

kb@wharton.upenn.edu wrote:

> I use Embperl 1.2.1 under mod_perl. Apache::Session is installed.
>
> I've set up session handling in httpd.conf as follows:
>
> PerlSetEnv EMBPERL_SESSION_CLASSES "File File"
> PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp/session/store LockDirectory=tmp/session/lock"