38 <authentication mode="Forms">
39 <forms loginUrl="~/Admin/Login.aspx" defaultUrl="~/Admin/Login.aspx" protection="All" timeout="60">
40 <credentials passwordFormat="Clear">
41 <user name="ff" password="xxxxxx"/>
42 <user name="someguy" password="xxxxxx"/>
43 </credentials>
44 </forms>
45 </authentication>
46 <authorization>
47 <allow users="?/>
48 <allow users="*">
49 </authorization>
...........
118 <location path="Public">
119 <system.web>
120 <authorization>
121 <allow users="?"/>
122 </authorization>
123 </system.web>
124 </location>
125 <location path="Content">
126 <system.web>
127 <authorization>
128 <allow users="?"/>
129 </authorization>
130 </system.web>
131 </location>
132 <location path="Admin">
133 <system.web>
134 <authorization>
135 <allow users="ff"/>
136 <deny users="*"/>
137 <!--<allow users="?"/>-->
138 </authorization>
139 </system.web>
140 </location>
141 <location path="Admin/Login.aspx">
142 <system.web>
143 <authorization>
144 <allow users="?"/>
145 </authorization>
146 </system.web>
147 </location>
...........
17
18 protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
19 {
20 if (FormsAuthentication.Authenticate(this.Login1.UserName, this.Login1.Password))
21 FormsAuthentication.RedirectFromLoginPage(this.Login1.UserName, true);
22 }
...........
Thanks to this link