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

Matt S Trout dbix-class at trout.me.uk
Wed Aug 27 16:44:44 BST 2008

On Wed, Aug 27, 2008 at 10:41:11AM +0200, Tobias Kremer wrote:
> Quoting Moritz Onken <onken at houseofdesign.de>:
> > Am 27.08.2008 um 10:19 schrieb Tobias Kremer:
> > > Ok, a second glance (after the first coffee) revealed that the
> > > separation is indeed there :) The question is, why?
> >
> > Just guessing:
> > not every request has its own session object. There are users with no
> > session attached to them.
> That was my first guess, too. But AFAICT each and every user receives a session
> on its first visit - logged-in or not.

Only if you write to $c->session.

But if you write to $c->flash, then you have to create a cookie, so I guess
you're effectively creating a session anyway.

So as long as you have to write to one of the two to create a session, I
don't really see a problem.

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list