Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 207113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:42:24+00:00 2026-05-11T17:42:24+00:00

I have this membership site setup on my local machine using the ASP.NET membership

  • 0

I have this membership site setup on my local machine using the ASP.NET membership provider. When I go to:

http://localhost/admin/

It redirects me to

http://localhost/Login.aspx?ReturnUrl=%2fadmin%2fDefault.aspx

Which is fine. But after I put in my login information, the page just seems to refresh. It doesn’t actually log me in, and it just looks like it refreshes the page. If I change the URL to:

http://localhost/Login.aspx

It works fine. It logs me in no problem, and redirects me to my default page. I also checked the live site and it does the same thing. Any ideas? Thanks in advance!

EDIT: Here is the markup:

<asp:Login ID="Login1" runat="server" CssClass="LoginBox" TitleText="Please Log In">
    <LayoutTemplate>
        <h2>
            Please Log In:</h2>
        <p runat="server" id="FailureText" visible="false">
            Either your email address or password was incorrect. Please try again.</p>
        <strong>Email</strong><br />
        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
            Text="*"></asp:RequiredFieldValidator>
        </p>
        <p>
            <strong>Password</strong><br />
            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                Text="*"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Button ID="Login" CommandName="Login" runat="server" Text="Log In" /></p>
        <p>
            Please <a runat="server" id="Link_ContactUs">contact </a>an administrator if you
            are having trouble logging in or have forgotten your password.</p>
    </LayoutTemplate>
</asp:Login>

web.config setup:

<authentication mode="Forms">
  <forms loginUrl="/Login.aspx"
         protection="All"
         timeout="60"
         name="AppNameCookie"
         path="/Admin"
         requireSSL="false"
         slidingExpiration="true"
         defaultUrl="/Admin/Default.aspx"
         cookieless="UseCookies"
         enableCrossAppRedirects="false" />
</authentication>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:42:24+00:00Added an answer on May 11, 2026 at 5:42 pm

    Can you show us some code? If you are using FormsAuthentication.RedirectFromLoginPage method, you should get what you want. Are you using FormsAuthentication.SetAuthCookie instead?

    Update

    Change path="/Admin" in web.config to path=/

    The reason it doesn’t work is that your authentication cookie is only set in /Admin path and your browser treats URLs as case sensitive so it won’t send the authentication cookie back to the /admin/Default.aspx page (lowercase admin).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have website that uses ASP.net Membership Provider. This web site will be served
I've got a membership site using the default ASP.NET membership setup. The user accounts
I have a site using ASP.NET Membership and have a number of roles that
We have an ASP.NET website set up using Active Directory as the Membership Provider.
I have an asp.net web-from application which uses ASP.NET membership provider . Beside this
Our site is using ASP.Net Membership. I have a page which literally has nothing
I am trying to set up the membership provider. I have used the ASP.Net
I'm using ASP.NET membership for a site that will serve primarily sophisticated users. I
I'm using Asp.net Membership provider. I want to know which event triggered when a
We have a case where a web site already exists and is using ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.