« Previous Next »

Thread: Authentication drops after redirect away from main site

Last post 11-07-2008 11:53 AM by mybestguess. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-30-2008, 2:39 PM

    Authentication drops after redirect away from main site

    I am sorry if the title is a little confusing.  This is the problem.  I have a site that has a user aspect and an admin aspect.  The user and admin parts were developed as seperate projects but are nested sites in IIS.

     The user aspect uses Formsauthentication and works fine when I navigate away from the root site and then back.  This works as it should keeping the authentication active as long as the user hasn't closed out of the browser or logged off.

    The admin aspect uses Windows authentication.  The authentication is based on folder permissions defined by our Active Directory.

    When you navigate from the user to the admin part it works fine and doesn't ask the user to log in after doing so the initial time.  The problem is going from the admin aspect back to the user part.  Every time I navigate from www.mysite.com/admin back to www.mysite.com/user the system makes the user log in every time. 

    I haven't been able to figure out a way for the authentication to stick.  It seems like the Windows authentication overrides the Forms authentication.  What do you think?  Thank you for any help.

  • 11-06-2008, 1:19 AM In reply to

    Re: Authentication drops after redirect away from main site

    mybestguess:
    The authentication is based on folder permissions defined by our Active Directory.

    Things you can try: 

    set user aspect and admin aspect in seperate website. and set authenticatin based on website.

    Thanks

     

    Sincerely
    Microsoft Online Community Support
    Andrew Zhu - MSFT


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 11-06-2008, 10:53 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,171
    • IIS MVPs

    Re: Authentication drops after redirect away from main site

    What's happening is that as a user, the browser is acting anonymously as far as IIS is concerned.  Once the user goes into admin and authenticates, the browser now has the user's Windows credentials cached and no longer browses anonymously, so when they go back to the user section, the browser attempts to access the content as that authenticated user. This is standard/normal behavior. The solution would be to give those authenticated users NTFS permissions to the user content areas, or just stick with .NET Forms authentication for the entire site, both user and admin areas.

  • 11-07-2008, 11:53 AM In reply to

    Re: Authentication drops after redirect away from main site

    Thank you both for the information.  I didn't think there was a logical way to resolve the issue.  I proposed the option of the same authentication methods but was denied as the AD serves as the easy final say in access according to those above.  Once they get tired of continuously entering in their information, they might change their mind.

     I again thank you both for taking the time to respond to my question.

Page 1 of 1 (4 items)
Microsoft Communities