[Catalyst] The old double-post issue
pagaltzis at gmx.de
Fri Sep 22 00:56:31 CEST 2006
* Wade.Stuart at fallon.com <Wade.Stuart at fallon.com> [2006-09-22 00:15]:
> > The problem, which I can reproduce in FF by hitting escape
> > between submits, is that the first request completes as
> > normal (and would return a "Transaction Completed!" response
> > page) but, then the second request (which is what the browser
> > is now following) sees that the transaction is no longer
> > valid and returns and error page.
> But why are you returning an error page, doesn't the fact that
> the token no longer is valid mean that the form has already
> been submitted (return a oops this form has already been
> submitted page)?
Because he can’t distinguish between “no longer valid” and “has
never been valid,” I assume. If invalidated tokens were marked as
used up but kept around for a while, then it would be possible.
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst