Thursday, February 20, 2014

Browser History clear After the Application Logout

I am working in .net web application. I have one big issue. when i Logout my application after that i clicked the Browser back button the browser history not clear. I have the Simple Javascript code. Its very easy to just call this javaScript method in the Logout page tag. This is my JavaScript method:
<script type="text/javascript">
window.history.forward();
function noBack() {
window.history.forward();
}
</script>
This is the HTML just call the javascript method like this:
<body class="layout-body" onload="noBack();" >

No comments:

Post a Comment