for one of the applications I am required to disable caching for admin pages so that when i click logout and press back button the pages are not shown
Add these lines in the html meta section
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="EXPIRES" content="0">
and in the page_load write this
Response.Cache.SetCacheability(HttpCacheability.NoCache);
if nothing works insert this code it works for all firefox ie and safari
<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>
|