I want to protect the users by not going back to the previous pages, consider the ex in banking sites where if we click "back" button, it shows "warning page expired" page.
In Asp.Net, how to do that.
I tried with the following options, but it doesnt work.
Option 1:-
<meta http-equiv="expires" content="0" />
Option 2 :-
<meta http-equiv="PRAGMA" content="NO-CACHE" />
Option 3:- on Page_Load()
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Cache.SetExpires(DateTime.Now.AddMinutes(-1));
Thanks in advance.