Form Authentication in .NET

The web.config file

What you have to keep watch to is the lines with
ntication> and tags.

Chjeck if user is Authenticate

FormsAuthentication.RedirectFromLoginPage(MyLogin.UserId, false);