I have a website mydomain.com and I have few pages under this domains requires authentication which are the member's area pages but NOT all pages under this domains needs authentication.
I added the following to web.config:
<forms loginUrl="~/Signin" timeout="2880" />
then in the signin page, i added this:
and the following in the pages where I need it to be authenticated:
if (!HttpContext.Current.User.Identity.IsAuthenticated) FormsAuthentication.RedirectToLoginPage();
when I sign it should go to the home.aspx page where I placed the IsAutehnicated but it's going back to the sign page? why is this?
Technology News @ www.JassimRahma.com