Login/Logout Problem
-
Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G
-
Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G
-
I am telling IE back button.If it is possible let me know how. Regards, Sundeep G
-
I am telling IE back button.If it is possible let me know how. Regards, Sundeep G
-
Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G
See Sandeep, On Every Page, Except Login Page, In Page Load Event Just write this Code. If Trim(Session("UserID")) = "" Then Response.Redirect("ErrorPage.aspx") End If Don't forget to clear the Session("UserID") value to "" on Logout or Session End Ramesh Sambari
-
Hi, I am telling IE back button?? What does it mean. Pls can u explain it.
Regards Anil Pal
Hi Anil Pal(Especially for You), Get into Code project site and login with your email id and password.Now Click on "Sign out" and You will be seeing site with No login account.Now click on back(History) button,Then you will see some screen with only login Id, but not password.This is called authentication.This is what, i was searching for.Feel free to ask some more.Ok Bye. Best regards, Sundeep G
-
Hi Anil Pal(Especially for You), Get into Code project site and login with your email id and password.Now Click on "Sign out" and You will be seeing site with No login account.Now click on back(History) button,Then you will see some screen with only login Id, but not password.This is called authentication.This is what, i was searching for.Feel free to ask some more.Ok Bye. Best regards, Sundeep G
Mr Sundeep, Have a look on the code I Posted earlier.. Even if you click Back button of the Internet Exploer, On Page Load event it will check the Session("UserID"), Obviously it will be empty, because you made it clear on signout...So immediately it will redirect to login page. Never you can see the backpage after you logged out. Ramesh Sambari
-
Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G
By using javascript ,you can disable back/history button
modified on Thursday, April 2, 2009 5:51 AM
-
Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G
are you surely check the properties windows for the logout button redirection to loginpage check it and if it is already done by you then try this: 1.make sure of session closing by session.abandon(); 2.make sure to check if session is not null on page load if so make sure to redirect the user to login page in case of session.tostring()==null;[not real code e.g. only]. and pls read some books before coming here. Have Fun, Alok