I had implement Form Authentication in my project. i had added following code,
<location path="btnet.css"> <system.web> <compilation debug="true"> </compilation> <authentication mode="Forms"> <forms cookieless="UseCookies" loginUrl="default.aspx" defaultUrl="bugs.aspx"> </forms> </authentication> <authorization> <allow users="*"/> <deny users="?"/> </authorization> <pages validateRequest="true"/> </system.web> </location>
I had added location tag because acess to css file otherwise Stylesheel applied to all control doen't work. i had stored login info in database. i had not write any code(code regarding Form Authentication) in login page,
1).if i run application, it will run fine. 2).if i directly run any form, it aske me two times for login, first time Stylesheet work fine, second time Stylesheet don't work. this things is happen if i run 2). in 1). 's browser, if i run 2). in different it doen't work.
|
| Author: Shivshanker Cheral 06 May 2008 | Member Level: Diamond | Rating: Points: 2 |
Question is confusing? can give more details
|
| Author: asdf 14 Aug 2008 | Member Level: Silver | Rating: Points: 0 |
It’s for validate the anonymous user credentials. System.Web.Security namespace is needed. FormAuthenticationModule which is in HttpModule class. If ticket is present, Security context is created by HttpContext.Current.User property with default instance of GenericPrinciple which contains FormsIdentity instance with the name of currently logged-in user. Eg. <authentication mode=”Forms”> <forms loginUrl=”frmLogin.aspx” timeout=”1”/> </authentication>
<authorization> <allow users=”?”/> <deny users=”?”/> </authorization>
|