[Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL

Tobias Kremer list at funkreich.de
Mon Jul 28 14:34:17 BST 2008


Quoting Peter Flanigan <pjf at roxsoft.co.uk>:
> Tobias Kremer wrote:
> > Duplicate entry 'flash:***' for key 1 [for Statement "INSERT INTO sessions2
> > (id) VALUES (?)" with ParamValues: 0='flash:***'] at
> > /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Plugin/Session/Store
> > /DBIC/Delegate.pm line 52"
> What is the length of the id field in the sessions2 table? Is it longer
> than a session key?

Yes, it's a char(72) field which is what the POD recommends:

http://search.cpan.org/dist/Catalyst-Plugin-Session-Store-DBIC/lib/Catalyst/Plugin/Session/Store/DBIC.pm#SCHEMA

This is a different problem than the one discussed last week or so! I'm pretty
sure it's a classic race-condition.

--Tobias



More information about the Catalyst mailing list