Problem with forms authentication when using redirection

Discussion in 'ASP.NET / ASP.NET Core' started by Marek, Jun 23, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi
    Our site is hosted at www.data-visualzation-software.com andforms authenticationworks fine. We have just set up a redirect from www.apricot-software.com to this site and when this way is used to access the site, the logon just seems to circle round - you enter your details, press the Logon button and you go back to the logon prompt page.

    I've created a testaccount for anyone who wants to give it a go:

    User name: [email protected]
    Password: support

    I would be very grateful if anyone couldshed some light on what we might be doing wrong.

    Best regards,

    Marek
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    i could not replicate the probelm. after i logged in, i was thrown back to the home page.

    i am using firefox.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Hi Bruce
    Either way, any idea why you would have been thrown back to the home page rather than the page the login was supposed to redirect you to?


    Marek
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    i am confused!!

    apricot-software.com is obviously hosted on another server (Linux based). I have no idea how these 2 domains interact w/ each other.

    can you give us more detail?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. I believe I have the precise answer for you.

    Forms authentication relies on you sending them to the page that is protected, not to the actual login page. When you go to a page that is protected and you have not authenticated then it will send you to the login.aspx page, with the original page in the query string. Now if you go directly to the login page the querystirng doesn't exist and the page doesn't know where to send after authentication. So Microsoft hard coded the destination to default.aspx. Since your main page is index.aspx, it is looping back to the login. Change your index.aspx to default.aspx and it will work, or from the other web site redirect them to the index.aspx page which then will populate the query string.

    ASP.Net 2.0 adds a mechanism to change the default from default.aspx to any page you like.

    Greg

    Greg Kelley
     
  6. Hi Greg


    We've renamed the home page to default.aspx (and changed the default page). This doesn't seem to fix the problem.


    Dave (Marek's colleague)
     
  7. Hi Bruce
    Sorry for the delay in getting back to you. We've been implementing some of the other suggestions without any success.


    The redirection has been set up as described here: http://amail.co.uk/webdivert.htm.


    It is rather interesting in that http://www.apricot-software.com works, whereas http://www.apricot-software.com/default.aspx doesn't. In fact nothing other than the root, with default document selection works, so for example http://www.apricot-software.com/products/doesn't work even though there is a default.aspx file there.


    I hope this helps.


    Best regards,


    Marek

     
  8. Hi Bruce
    In an attempt to get this matter resolved, we have moved all domain name root pointers for apricot-software and unit-conversion to data-visualization-software. The login problems persists.


    Also, another data point. If you type www.data-visualization-software.com and www.apricot-software.com then the default page in the root is found. If you type www.data-visualization-software.com/support/ and www.apricot-software.com/support/, the first one works, whilst the second one doesn't.


    Thanks for your help so far.


    Marek

     
  9. Bruce

    Bruce DiscountASP.NET Staff

    That's weird. If the domain pointer is setup, they should all go to the same place.

    Open a support ticket if problem persists.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page