How to Ignore a HTTP request?

Hello,

How can a request be ignored in a Controller?

I’m attempting to handle the double clicking hence double submitting of a form.

I’m doing this by using a token in the page and one in the session.

So is this token way the best way?

I can determine the second submit, however I would just want the request to be ignored by the controller and not return anything to the browser. Is this possible?

If the request cannot be ignored how I can handle the double submitting?

Any suggestions would be greatly appreciated.

maestroQC

I think the “not returning anything to the browser”-part is going to be problematic. The client will in any case expect a response from the server until timeout. Can’t you raise an exception instead?

Another idea were to disable the submit-button in your form once it’s been clicked. That could only be a first barrier, of course.