0

I've seen some web sites like banking applications that prevent the user from using the back button. If I remember correctly, when you press the back button your session times out.

How can I do this?

1

2 Answers 2

2

No, don't do that; don't surprise the user. The back button is there so it can be used. If that's a problem for you, find a way around it, not prevent it.

Use the Post/Redirect/Get pattern @benjynito mentioned in the comment.

Sign up to request clarification or add additional context in comments.

Comments

1

You cant disable browser's back button just use that, I found here

Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);

1 Comment

Some explanation of what this does and why the OP should use it would be helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.