Welcome Guest, Not a member yet? Register   Sign In
Inserting duplicate form data to DB
#1

[eluser]derekmichaeljohnson[/eluser]
Users of one of our CI apps have been experiencing a strange phenomenon lately, where they submit a form ONCE, and yet the form data is inserted into the database 2 or 3 times (via $this->db->insert()). It is as if the server is processing the request multiple times.

We've taken every precaution necessary on the frontend to disable double-clicking the form submit button, so we know that isn't the issue. And it is doesn't happen all the time, maybe only 1 out of 25 times (I personally cannot replicate the issue).

Does this ring any bells for anyone? And can you recommend a fix?
#2

[eluser]ururk[/eluser]
I experienced this before. I had an application which logged page views to a database, and for some reason, it was double-logging. I suspected it might have been a redirect issue, but since the page never flashed, and the URL never changed, I was never able to track it down. If I remember correctly my logging code was in the __construct portion of the controller.

However, except for that rare case, I've never had this happen.
#3

[eluser]derekmichaeljohnson[/eluser]
No help on this one?




Theme © iAndrew 2016 - Forum software by © MyBB