How to disable back button of the browser after logout

How to disable back button of the browser after logout

It is done by javascript. Cut the below script into your page where u want to disable the back button of IE


Comments

Author: SenthilKumar 28 Aug 2008 Member Level: Bronze   Points : 1

Put this Code between tag

The code is






Author: vijaybabu08 Dec 2008 Member Level: Silver   Points : 0

excuse me ...
where is the Code??

Author: rajkumar09 Dec 2008 Member Level: Bronze   Points : 2

set this code in login form

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Qstr = Request.QueryString.Get("logout")
If Qstr = "1" Then
Session.Abandon()
End If
End If
End Sub


and set this code to logout button

hlLogout.NavigateUrl = "login.aspx?logout=1&sID=" + Session.SessionID + ""

Author: Tejas09 Dec 2008 Member Level: Bronze   Points : 0

Try adding this to the top of your page

Response.expiresabsolute=now() -1

Author: Sidharth Mahajan10 Dec 2008 Member Level: Bronze   Points : 1

Just write this on the source code page
script language=javascript
history.forward()
/script

this will do.i have used it.

Author: Nitin Kumar15 Jan 2009 Member Level: Bronze   Points : 1

Paste this code below tag and above tag