Both options are failed for me.i could go back and view the previous pages.
I am new to ASP what other things i need to concentrate.i am not sucessful in security log out.please explain me.how to do?
Hi there,
I wonder why you always jump into conclusions. Understand <Sessions> in ASP first. Sessions are always active as long as your browser window is active. So, close the browser and try to open the same page again, see what happens now.
What is the logic in your Auth page? Kindly refer to below sample, hope you understand better now. Good luck & Take care.
Auth page (login)
-
If <'username & password successfully validated'> Then
-
Session("IsLoggedIn") = "yes"
-
End If
-
Add this statement on top of every page that you wish to protect
-
If Session("IsLoggedIn") <> "yes" Then
-
Response.Redirect "acess_denied.asp"
-
End If
-
p.s/ Hope you understand better now.