[Catalyst] error using session and authn plug-ins under apache
Yuval Kogman
nothingmuch at woobling.org
Fri Jul 28 20:14:51 CEST 2006
On Fri, Jul 28, 2006 at 11:42:40 -0400, leonard.a.jaffe at jpmchase.com wrote:
> When I use session and authentication together under apache, I get this
> error
> [error] Caught exception in engine "Can't store CODE items at
> ..\..\lib\Storable.pm
> (autosplit into ..\..\lib\auto\Storble\_freeze.al) line 290, at
> D:/Perl/site/lib/Object/Signature.pm line 19"
It sounds like the authentication plugin is somehow storing a code
reference in the session (are you overriding the for_session method
in your user class? That's supposed to export a simplified data
structure that can be safely serialized and used to refetch the user
from the store efficiently - it sounds like it's giving back a code
ref).
Object::Signature is used to make sure that the session is only
written to the database if it changed, in order to save unnecessary
IO and to eliminate possible race conditions.
> I do not get this error using the myapp_server.pl server.
That's very odd...
Please post code/configuration if you can.
--
Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org 0xEBD27418
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060728/408b6c98/attachment.pgp
More information about the Catalyst
mailing list