<location path="MembersArea"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location>
<authentication mode="Forms"> <forms name="formsauth" loginUrl="login.aspx" protection="All" timeout="60" > <credentials passwordFormat="Clear"> <user name="doru" password="doru"/> </credentials> </forms> </authentication> <authorization> <allow users="*" /> </authorization>...and it seemd to be working - every time I clicked on a hyperlink to the form in the restricted area, I was taken to the login page. So far so good...
if (FormsAuthentication.Authenticate(txtUsr.Text, txtPwd.Text)) FormsAuthentication.RedirectFromLoginPage(txtUsr.Text, true);and this took me straight to the page... Amazing!
FormsAuthentication.SignOut();
Response.Redirect("default.aspx");
but when I click it I get: The viewstate is invalid for this page and might be corrupted