-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: thisiissandeep
Message 1 in Discussion


Hi friends,
I have a problem. 
I want to use forms authentication. There are two web forms. mypage and login. 
Mypage form is a customized page and access  
to it should given only to authenticated users. If request for mypage comes 
from browser, asp.net should automatically  
redirect me to login page if the user is not authenticated. And after user 
authentication is done in login.aspx, it should  
automatically redirect me to the mypage. 
Here is the authentication element in web.config file.
<authentication>
<deny users="?"> 
Inspite of this, mypage displays even for unauthenticated user. I am using 
anonymous authentication in IIS.
Problem is that instead of redirecting to login.aspx as I am unauathenticated 
user, asp.net is displaying mypage directly. 

I have done everything right like using 
formsauthentiucation.redirectfromloginpage but still no use.
Please find my project as attachment. 
one more doubt.
If we want to use forms authentication, should we always check anaonymous 
access in IIS. I have this doubt because if we  
use other forms like basic, digest, integrated, even we authenticate user, IIS 
authenticating the user as Admin. Does that mean that we should always use 
ananymous access. Thanks in Advance, Sandeep

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to