Authentication
-
Hello guys im building a web application, and i have a problem which is in the home page i have a login page, and other information.. i wanna to give access to all users to the information in the homepage, but not to the pages inside my application.. and how can i make the authenticated user to log out! 'i want to give access to all users to some pages not all pages' and the authenticated users can access them all. thanks in advance Regards
Estarta
-
Hello guys im building a web application, and i have a problem which is in the home page i have a login page, and other information.. i wanna to give access to all users to the information in the homepage, but not to the pages inside my application.. and how can i make the authenticated user to log out! 'i want to give access to all users to some pages not all pages' and the authenticated users can access them all. thanks in advance Regards
Estarta
As much as I know, you should put the pages that you don't want to get access to in a folder and put a Web.Config file in that folder and set this tag: this way you will make users to login before they can see the content of this folder(they will be redirected to login.aspx automatically)! And when you can Log some user in using:
System.Web.Security.FormsAuthentication.RedirectFromLoginPage();
you can log him out using:System.Web.Security.FormsAuthentication.SignOut();
;)Sojaner!