On 7/4/06, Anthony Chee <[EMAIL PROTECTED]> wrote:
$self->session_config(
CGI_SESSION_OPTIONS => ["driver:file",
{
Directory => $self->param('serverRoot') . 'tmp',
}
],
DEFAULT_EXPIRY => '+10m',
);
**SNIP**
I got Error 500 when execute this module. And there is following error
in error.log
Error executing class callback in prerun stage: Failed to Create
CGI::Session object :: Reason: new(): failed: query object
HASH(0x154f72c) does not support cookie() and param() methods: Can't
call method "cookie" on unblessed reference at
C:/Perl/site/lib/CGI/Session.pm line 666.\n at
C:/Perl/site/lib/CGI/Application/Plugin/Authentication/Store/Session.pm
line 83\n
The problem is with your CAP::Session config. The second parameter
must be the session ID, or a query object.
CGI_SESSION_OPTIONS => ["driver:file", $self->query,
{
Directory => $self->param('serverRoot') . 'tmp',
}
Cheers,
Cees
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]