bluecjh
Programmer
- Mar 12, 2003
- 385
As a relatively new asp developer it strikes me that a lot of the core issues vis a vis asp aplication development are about the control (or lack of control) of the user and the ‘flow’ thorough the application.
I have been trying to successfully gain some control by looking at the ‘disabling the back button’ issue, I came to the conclusion that the easiest and cleanest method was:
<script>
history.forward();
</script>
(assuming the browser accepts this code) but by navigating through the 'history' I can get round this fix. I am not happy with this ‘cheat’ anyway because I would prefer a ‘server side’ solution (which by the way also does not involve the use of session variables).
How do you pros generally approach the issue of users repeatedly hitting the back or forward buttons or retrieving pages from the ‘history’ and thus wrecking the application logic?, for example say in on-line banking if I transferred money from one account to another I assume that the application wouldn’t let me duplicate a transaction just by clicking back and resubmitting the page.
I’m sorry for the length of this but the solutions I read all seem a bit ‘cheat’ – like and fallible. In broad terms what is the way to go?
Chris
I have been trying to successfully gain some control by looking at the ‘disabling the back button’ issue, I came to the conclusion that the easiest and cleanest method was:
<script>
history.forward();
</script>
(assuming the browser accepts this code) but by navigating through the 'history' I can get round this fix. I am not happy with this ‘cheat’ anyway because I would prefer a ‘server side’ solution (which by the way also does not involve the use of session variables).
How do you pros generally approach the issue of users repeatedly hitting the back or forward buttons or retrieving pages from the ‘history’ and thus wrecking the application logic?, for example say in on-line banking if I transferred money from one account to another I assume that the application wouldn’t let me duplicate a transaction just by clicking back and resubmitting the page.
I’m sorry for the length of this but the solutions I read all seem a bit ‘cheat’ – like and fallible. In broad terms what is the way to go?
Chris