how to logout session handle
-
how to handle the froward key and back key of IE when user is logout. If user logout, but user can go to welcome page again using back key without using login page.how to handle this.please help me to control this prob............:confused:
The first line is so that the user cnnot click on 'Back' Button. The second line is so that the user must login again to gain access: Response.Cache.SetCacheability(HttpCacheability.NoCache) If Request.QueryString("Logout") = "1" Then Session.Abandon() Response.Redirect("URL") End If Logout Link: Logout
-
The first line is so that the user cnnot click on 'Back' Button. The second line is so that the user must login again to gain access: Response.Cache.SetCacheability(HttpCacheability.NoCache) If Request.QueryString("Logout") = "1" Then Session.Abandon() Response.Redirect("URL") End If Logout Link: Logout
-
i have tried your code but below line dont work any other way to stop the back button? Response.Cache.SetCacheability(HttpCacheability.NoCache)
The following code:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
should be in the Page Load event. Is your in the Page Load event? :Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.Cache.SetCacheability(HttpCacheability.NoCache)
That's how my code is. If it doesn't work, then I'm not sure how to change it :~ -
how to handle the froward key and back key of IE when user is logout. If user logout, but user can go to welcome page again using back key without using login page.how to handle this.please help me to control this prob............:confused:
Write these meta tags lines over HTML code page :-D
keep Learning and you never will be out of date...