[Catalyst] Re: flash with DBIC session storage

A. Pagaltzis pagaltzis at gmx.de
Sat Jul 28 22:21:56 GMT 2007


* Jonathan T. Rockway <jon at jrock.us> [2007-07-28 02:35]:
> On Fri, Jul 27, 2007 at 11:57:01AM -0700, Mesdaq, Ali wrote:
> > Are you sure that InnoDB would solve this issue? Even if just
> > a row was locked and you have 2 inserts at the exact same
> > time how would that resolve the issue?
> 
> One transaction would succeed and the other would fail. If you
> want different behavior, you'll have to change the isolation
> level (or actualy, in this case, rethink your app).
> 
> It's more of an issue of this:
> 
> User visits page A.
> User visits page B in another tab.
> User submits form A.
> User submits form B.
> A updates the flash.
> B updates the flash.
> Page A2 loads with whatever flash won.
> Page B2 loads with whatever flash won.

Keeping implicit state on the server blows. News at 11.

(The right way: don’t use flash. Put the stuff somewhere
where you can give it a URI and send the user to that
address.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list