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 8900437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:05:57+00:00 2026-06-15T01:05:57+00:00

I have a web.config with the following: <system.web> <customErrors mode=Off/> <authentication mode=Forms> <forms loginUrl=Login.aspx

  • 0

I have a web.config with the following:

 <system.web>
<customErrors mode="Off"/>

<authentication mode="Forms">
  <forms loginUrl="Login.aspx" name="SIPE_ASPXAUTH">
    <credentials passwordFormat="Clear">
      <user name="user1" password="123456"/>
      <user name="user2" password="123456"/>
      <user name="user3" password="123456"/>
    </credentials>

  </forms>

</authentication>


<authorization>

  <deny users="?"/>
</authorization>
<compilation debug="true"/>

This web.config always redirects me to the following url

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

My start page is a Login.aspx and even after entering the correct credentails, it redirects me to the above url.

So here’s what I did.
I took out the name property in the

 <forms loginUrl="Login.aspx">

and left everything else untouched.
It works perfectly.

Can anyone pls explain why.
I understand that this is a cookiename and the default is ASPXAUTH. This cookie is used to authenticate a user. Also it is stored in tools..options…

What is the use of setting this cookiename. Is it to allow cross browser functinality.n
How would I make this to work by having the name property in the <forms loginUrl="Login.aspx">

Thank u

  • 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-06-15T01:05:58+00:00Added an answer on June 15, 2026 at 1:05 am

    config setting is seems to be OK but you have write some code in your login page’s code behainsd also for form authentication. After checking user name & password is corrent you have to write below code :

    FormsAuthentication.SetAuthCookie(
                     this.TextBox_username.Text.Trim(), flase);
    
             FormsAuthenticationTicket ticket1 = 
                new FormsAuthenticationTicket(
                     1,                                   // version
                     this.TextBox_username.Text.Trim(),   // get username  from the form
                     DateTime.Now,                        // issue time is now
                     DateTime.Now.AddMinutes(10),         // expires in 10 minutes
                     false,      // cookie is not persistent
                     "HR"                              // role assignment is stored
                     // in userData
                     );
              HttpCookie cookie1 = new HttpCookie(
                FormsAuthentication.FormsCookieName, 
                FormsAuthentication.Encrypt(ticket1) );
              Response.Cookies.Add(cookie1);
    

    For more detail on Form Authentication Click Here

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

Sidebar

Related Questions

If have the following web.config : <configuration> <system.web> <authentication mode=Forms> <forms name=MembershipCookie loginUrl=Login.aspx protection=All
I have the following setup: Web.config has customErrors mode=Off Global.Application_Error() event calls a custom
Say I have the following web.config: <?xml version=1.0 encoding=utf-8?> <configuration> <system.web> <authentication mode=Windows></authentication> </system.web>
In my web.config, I have: <system.web> <customErrors mode="On" defaultRedirect="Error.cshtml" /> </system.web> In Views/Shared/Error.cshtml, I
I have a web config with the following: <location path=toolbar/apps/loginservice/login> <system.web> <authorization> <allow users=?/>
I am using IIS V5.1. Integrated windows authentication I have a following web config:
I've got following in my web.config: <compilation defaultLanguage=vb debug=false targetFramework=4.0/> <customErrors mode=On defaultRedirect=~/error.html/> It
Question: in web.config in section system.web I have <globalization culture=de-ch uiCulture=de-ch requestEncoding=UTF-8 responseEncoding=UTF-8/> What
I have ASP.NET set up to use the CustomErrors functionality: <customErrors mode=On defaultRedirect=~/ErrorPages/500.aspx redirectMode=ResponseRewrite>
I have the following web config file. I am having some difficulty in retrieving

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.