G
Guest
Okay, this should be pretty simple for those of you who have written several
enterprise level web applications:
I'm looking for simple concepts to deal with a client re-posting the same
data over and over. IE: Adding a comment to a record, adding an item to a
cart etc. (hitting the refresh button over and over re-posting the old values)
I’m looking for a solution a little more elegant than comparing data values
etc. I would rather intercept and detect that this is an “unnecessary†re
post early in the process.
What are some of the "best practices" that have been used? I'm not looking
for the detail of implementation (but feel free to explain if you would like).
I have been tossing a few ideas around in my head such as a base class that
all web forms inherit from that assigns a simple "time stamp" key to the form
value and then increments or modifies it on the server with each post but
this is not a "best practice" because it introduces process affinity.
Most of what I do is deployed in a web farm/garden environment so we do use
SQLServer session management. I prefer to stay clear of methods that would
make it necessary to store the “key†in session for every post.
Any thoughts?
Thanks!
enterprise level web applications:
I'm looking for simple concepts to deal with a client re-posting the same
data over and over. IE: Adding a comment to a record, adding an item to a
cart etc. (hitting the refresh button over and over re-posting the old values)
I’m looking for a solution a little more elegant than comparing data values
etc. I would rather intercept and detect that this is an “unnecessary†re
post early in the process.
What are some of the "best practices" that have been used? I'm not looking
for the detail of implementation (but feel free to explain if you would like).
I have been tossing a few ideas around in my head such as a base class that
all web forms inherit from that assigns a simple "time stamp" key to the form
value and then increments or modifies it on the server with each post but
this is not a "best practice" because it introduces process affinity.
Most of what I do is deployed in a web farm/garden environment so we do use
SQLServer session management. I prefer to stay clear of methods that would
make it necessary to store the “key†in session for every post.
Any thoughts?
Thanks!