Double Posting of forms/Two sessions
We have a really strange issue, wondering if anybody else has even had this
We're developing an Android app which utilizes web content from the CF8 server by using a browser that we build into the app.
The app allows end users to complete a form (from our server - just a web page really) and then post it, it's really no different than a web site.
Here's the problem, the code started to crash yet looked perfect and after some digging I found that what appeared to be happening was that the 'browser' was some how posting twice, two separate instances, I have a UUID that writes to the dbase with the record, that was unique in the TWO records that it created, I put a CFABORT at the end of the SQL insert statement, and still got two records, I also had it update a counter in the dbase, and I found that I still got two record updates, with the CFabort in place it showed that there was no code AFTER the sql that could cause it to loop back into the code, so it must be hitting the page twice (no checks for dupe records as this was not expected)
I am guessing it's the app, it doesn't happen in firefox, or the phones native web browser outside of the app.
I'm going to play around with the application.cfm which does check for a session, and if one does not exist kick the user back to the index.cfm, and also look for any initially provided URL variables and set them into the system, I am wondering if that redirect is messing it up.
Anyway, it's a strange one, thought I'd throw it out there for comments
Thanks
Mark
