After logout dont go back to previous page by back button using
i used history.go(1) in all web pages for not going back,it is working.After logout when back button using it coming on same page,but the problem is that when using the webpages before logout back button does not gives the previous page.i want a solution that i can use backbutton if login and after logout i dont want the back button.please give a solution
Does this question deal with creating applications in the java programming language, and if so, how? If not, you will have to find another forum in which to ask this. If you are asking about javascript, understand that javascript != java.
i developed a web based project,in that there is login and logout section.after logout section,taking backward the previous page coming,but no futher request going bec there is no session.i dont want to go back to the previous page after logout
<script language="JavaScript" type="text/JavaScript">
javascript:window.history.forward(-1);
</script>
hey paste aboue code into head part of the log-out page it ll disable the back button..