[Catalyst] Session Problem

Mike Garfias mike at garfias.org
Tue Dec 20 07:13:09 CET 2005


I've run into a problem, on three seperate machines (one RH ES4, one Deb 3.1,
and one OSX 10.4.3) where the sessionid is not being generated.

I'm using Catalyst::Plugin::Session,
Catalyst::Plugin::Session::Store::FastMmap, 
Catalyst::Plugin::Session::State::Cookie,
and have tried Catalyst::Plugin::Store::DBI

Using FastMmap I get this error: 

Use of uninitialized value in length at
        /Library/Perl/5.8.6/darwin-thread-multi-2level/Cache/FastMmap.pm line
	574 (#1)
Use of uninitialized value in subroutine entry at
        /Library/Perl/5.8.6/darwin-thread-multi-2level/Cache/FastMmap.pm line
	578 (#1)  

and Store::DBI I get:

[Mon Dec 19 21:47:32 2005] [catalyst] [error] Caught exception in engine
"DBD::mysql::st execute failed: Column 'id' cannot be null [for Statement
"INSERT INTO sessions (session_data, expires, id) VALUES (?, ?, ?)"] at
/Library/Perl/5.8.6/DBIx/ContextualFetch.pm line 51."      

I turned off the primary key (while the app was running) to see what the
insert was like and my ID field was not being set. 

I hacked Data::Dumper into Session.pm, and then dumped in various places.
Dumping $c in session() was never called.  Doing the same in
generate_session_id() also showed that it was never called.

Any ideas for what I can try to do next?

Thanks!

Mike



More information about the Catalyst mailing list