Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Re: Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


list at funkreich

Aug 27, 2008, 1:41 AM

Post #1 of 2 (433 views)
Permalink
Re: Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

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.

Can we confirm this?

--Tobias

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


dbix-class at trout

Aug 27, 2008, 8:44 AM

Post #2 of 2 (402 views)
Permalink
Re: Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings [In reply to]

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/

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.