Subscribe to Subscribers

Resources » Code Snippets » Active Directory

How to disable back button of the browser after logout


Posted Date:     Category: Active Directory    
Author: Member Level: Gold    Points: 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






Did you like this resource? Share it with your friends and show your love!


Responses to "How to disable back button of the browser after logout "
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


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Get all special folders
    Previous Resource: send sms using c# code
    Return to Resources
    Post New Resource
    Category: Active Directory


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    (No tags found.)

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.