ASP.net Back button from logout goes to previous page despite caching turned off -
I have an application where I click the log out and the back button of the browser, only on the cache version of the page shown Static data is redirected (dynamically incoming data is not shown).
Now, I have all the code related to disabling caching. I have used the following methods in my code
- Response.Cache.SetCacheability (HttpCacheability.NoCache);
feedback. Buffer = true;
Response. Exporter's Azolitude = DateTime.Now Adue de (-1);
feedback. Expere = 0;
Response. Catch Control = "No-Cash";
- javascript: window.history.forward (1);
- Page.Response.AppendHeader ("Cash-Control", "No-Store, No-Cash, Sure-Modified, Post Check = 0, Tried to disable the input cache setting in the pre-check = 0 "IIT (IOR 7.5), but to no avail.
Actually, to find online in my code All steps have been tried
The point of intestring is: All the above solutions work right on my dev machine when I have them in my prod server's intro (url syaing localhost: // xyz), even then they work fine I but of any of these tasks when I actually use the website.
I logout I use the normal anchor tag and no server controls the page on my page.
Any suggestions ???
Try javascript to prevent a back button on a particular page.
- javascript: window.history.forward (1);
Comments
Post a Comment