Login and Login Status Control In Asp.net
-
I am using login and loginstatus controls in my application. When I logged In It change the login status control text to logout which is fine but when I click the logout button it does not take me to the login page again.And how I can stop user to go back by clicking back button in the browser once he is logged off. How I can store login username in session variable by using login control? THanks In advance Ejaz
-
I am using login and loginstatus controls in my application. When I logged In It change the login status control text to logout which is fine but when I click the logout button it does not take me to the login page again.And how I can stop user to go back by clicking back button in the browser once he is logged off. How I can store login username in session variable by using login control? THanks In advance Ejaz
To prevent the user from using the back button and gaining access after logoff you need to add checks to each page that verify the user has logged in, if not redirect them to the login page. After the user has logged in you can get the username from the security principal, like WindowsIdentity.Name
only two letters away from being an asset