How do I remove a page from the browser history?

前端 未结 8 1661
孤独总比滥情好
孤独总比滥情好 2021-02-07 11:21

I have an have an ASP.Net page which contains a button. This Page contains a ServerSide Paypal button.

When pushed my server does various clever things on the back end a

8条回答
  •  清歌不尽
    2021-02-07 11:43

    As a web application, you'll never have full control of the user's browser. Even if there was a way to instruct the browser to not store the page in history, which I doubt, you can't be sure it'll work. For example, a clever user could tweak an open-source browser to store every page in history, no matter what.

    I think you should try to approach the problem from another angle. You could, for example, detect that it's the same form which is being forwarded and not send it to paypal the second time. The important thing is to do it server-side.

提交回复
热议问题