Mailing List Archive

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 [ In reply to ]
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"
Re: Problem configuring sessions [ In reply to ]
> 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 [ In reply to ]
>I use Embperl 1.2.1 under mod_perl. Apache::Session is installed.
>

Just to be sure, you need Apache::Session 1.0x (1.5x is not supported yet)

>I've set up session handling in httpd.conf as follows:
>
>PerlSetEnv EMBPERL_SESSION_CLASSES "File File"


use:

PerlSetEnv EMBPERL_SESSION_CLASSES "FileStore FileLocker"

(must be a name of a Apache::Session::* class)

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


and add the leading slash like Cliff already wrote

Gerald