C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Active Directory »

How to disable back button of the browser after logout


Posted Date: 13 Feb 2008    Resource Type: Code Snippets    Category: Active Directory
Author: KalyanMember Level: Gold    
Rating: 1 out of 5Points: 5



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




Responses

Author: SenthilKumar     28 Aug 2008Member Level: Bronze   Points : 1
Put this Code between tag

The code is









Author: vijaybabu    08 Dec 2008Member Level: Silver   Points : 0
excuse me ...
where is the Code??


Author: rajkumar    09 Dec 2008Member 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: Tejas    09 Dec 2008Member Level: Bronze   Points : 0
Try adding this to the top of your page

Response.expiresabsolute=now() -1


Author: Sidharth Mahajan    10 Dec 2008Member 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 Kumar    15 Jan 2009Member Level: Bronze   Points : 1
Paste this code below tag and above tag
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Get all special folders
Previous Resource: send sms using c# code
Return to Discussion Resource Index
Post New Resource
Category: Active Directory


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use