Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add a GUID to AJAX Requests to Allow De-Duping on Server #956
Currently, it is possible for an AJAX request to be send multiple times by the browser and handled as many times by the server. Consider the following scenario:
You see where this is going.
In Novell Vibe, we solved this problem by adding an ID to our AJAX requests that were susceptible to this issue. Then, when the server receives the request, it checks to see if it's already processed that id. Unfortunately, we've only been able to do this on a case-by-case basis, and it's not trivial code when done at the application layer. This could be handled much more elegantly by Lift itself as part of the generalized AJAX dispatch mechanism.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/956