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

Mailing List Archive: Catalyst: Users
Re: Session duplicate key constraints on concurrent requests
 

Index | Next | Previous | View Flat


snabb at epipe

Oct 10, 2011, 4:53 AM


Views: 506
Permalink
Re: Session duplicate key constraints on concurrent requests [In reply to]

On Mon, 10 Oct 2011, Tobias Kremer wrote:

> So, isn't the use of find_or_create() just plain wrong or am I seeing
> things here? :)

I have been thinking also that the correct solution might be as
simple as to just replace find_or_create() with find(), but I have
not managed to have a look at upper layers how exactly the session
store methods are being invoked... thus I am not sure.

In the case of 2 simultaneous connections with an expired session
cookie (which is now triggering the SQL constraint issue), both
connections would get a new session, but the browser would get to
decide which one it will hold on to, and which one will be forgotten
and eventually also expired from the server. I think the browser
will hold on to the session that it receives later.

--
Janne Snabb / EPIPE Communications
snabb [at] epipe - http://epipe.com/

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

Subject User Time
Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 7, 2011, 5:48 AM
    Re: Session duplicate key constraints on concurrent requests erik.wasser at iquer Oct 7, 2011, 9:11 AM
        Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 7, 2011, 9:38 AM
        Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 7, 2011, 9:59 AM
    Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 7, 2011, 11:17 AM
    Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 7, 2011, 12:25 PM
    Re: Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 7, 2011, 1:22 PM
        Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 8, 2011, 12:44 AM
    Re: Session duplicate key constraints on concurrent requests pagaltzis at gmx Oct 7, 2011, 4:30 PM
    Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 8, 2011, 5:23 AM
    Re: Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 10, 2011, 1:42 AM
    Re: Session duplicate key constraints on concurrent requests snabb at epipe Oct 10, 2011, 4:53 AM
    Re: Session duplicate key constraints on concurrent requests mdietrich at cpan Oct 10, 2011, 5:26 AM
        Re: Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 10, 2011, 5:56 AM
    Re: Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 10, 2011, 6:25 AM
    Re: Session duplicate key constraints on concurrent requests mdietrich at cpan Oct 10, 2011, 8:32 AM
    Re: Session duplicate key constraints on concurrent requests billcrawford1970 at gmail Oct 11, 2011, 2:22 AM
    Re: Session duplicate key constraints on concurrent requests tobias.kremer at gmail Oct 12, 2011, 2:38 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.