0

Hello. I am constructing feedback form

- SMTP
- ADO
- Captcha

OK. Everything works fine to me. Except one important thing. After smtp and sql injection and Reset(), user can hit back in browser and after that resend message. that's not good. How to make the data in form not to be accessible twice?

Perhaps, somebody can link me to some useful resource?

Edited by Nfurman: n/a

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Nfurman
0

>How to make the data in form not to be accessible twice?

Golden rule:
1. Turn off autocomplete.
2. Disabled the response cache.
3. Disabled the viewState.

0

Unfortunately, this approach doesn't work for me.
I've found other way to do it. Just put in master page in <head>
the next code

<script type="text/javascript">
function noBack(){window.history.forward();}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack();}
window.onunload=function(){void(0);}
</script>

And it works!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.