Solved

Forms Authentication Requests Are Not Directed to login Url Page

Posted on 2008-06-25
2
559 Views
Last Modified: 2013-11-07
Alright experts, I dont know why this is not working. Its 10 after 1am and I need some help. I am implementing forms authentication. I have specified the loginURL, authentication cookie name and path. I however cannot get my pages protected. Somehow the redirection to the login page would not work. I just dont know help me figure this out.

The web.config entry is below
  <add name="AspNetSqlMembershipProvider"
               type="System.Web.Security.SqlMembershipProvider"
               connectionStringName="connstring"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               requiresQuestionAndAnswer="false"
               applicationName="/"
               requiresUniqueEmail="false"
               passwordFormat="Hashed"
               maxInvalidPasswordAttempts="5"
               minRequiredPasswordLength="1"
               minRequiredNonalphanumericCharacters="0"
               passwordAttemptWindow="10"
               passwordStrengthRegularExpression="" />
      </providers>
    </membership>
    <authentication mode="Forms">
      <forms name=".VENDORAUTH" loginUrl="Login.aspx" path="/"  timeout="30"  protection="All"  >
       
      </forms>
    </authentication>
    <authorization>
      <allow users="?"/>
    </authorization>
0
Comment
Question by:trwd
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
avnish_tanna earned 500 total points
ID: 21872225
You need to have deny users="?" in web.config file.
<authorization>
            <deny users="?" />
</authorization>
0
 
LVL 6

Expert Comment

by:avnish_tanna
ID: 21906258
trwd - were you able to resolve it using above change?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now