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

  • Home
  • SEARCH
  • 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 6335255
In Process

The Archive Base Latest Questions

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

I have a MVC3 website that right now uses Forms Authentication and it functioning

  • 0

I have a MVC3 website that right now uses Forms Authentication and it functioning great. The site requires client internet users to have a log in that we provide. In addition, I have a few internal user accounts for site administration.

I’m considering creating a second intranet site that the network users can navigate to that will authenticate them using Windows Authentication. I’d like to then map the Windows User to one of the internal user accounts mentioned above. Once authenticated and mapped, I’d like to redirect them from this intranet site to the internet site with the log in I just mapped to them.

I’ve tried some of the mixed Windows/Forms Authentication solutions out there, but they don’t work with MVC3 and IIS7 as most of them were pretty much hacks that don’t really apply to the later technologies.

I’m wondering if this is a worthwhile attempt before going down this road?

If so…
How can I redirect and pass the login to the internet site from the intranet site?

Thanks in advance,
Jeff

  • 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-24T18:49:12+00:00Added an answer on May 24, 2026 at 6:49 pm

    Here’s one way:

    If you have 2 sites:

    http://www.mywebsite.com and intranet.mywebsite.com

    1. Make sure that all servers have the same <machineKey> in the machine.config
    2. In the <formsAuthentication> section set the [domain] attribute equal to “.mywebsite.com”
    3. On the internet site (after Windows Authentication has identified the user), use the FormsAuthentication API to set a FormsAuthentication cookie that will then be valid on the external site.

      FormsAuthentication.SetAuthCookie(currentUser.Name, false);
      

    After the FormsAuthentication cookie is set, the external site will see the user as being logged in just the same way as if they logged in using FormsAuthentication on the external site.

    P.S. Also make sure that KB2416472 is installed on all machines (its a Forms Authentication vulnerability update)

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

Sidebar

Related Questions

I have a website developed using ASP.NET MVC3. I now want to expose a
I have recently implemented an MVC3 website and had to now include data from
I have an ASP.NET MVC3 website with custom authentication (i.e. <authentication mode=None / >).
I hope that title is clear enough. I have 2 projects, MyProject.Website (ASP.NET MVC3
I have added an MVC3 web application to an existing website that consists of
I have an MVC3 website backed by a SQL server db. The db gets
I'm building a website using MVC3, EF, and Razor and I currently have the
I have a website built in asp.net mvc 3 which uses the repository pattern
I have an ASP.NET MVC 3 website that communicates with my iOS app via
I am using mvc3 with razor. I have a normal website structure with an

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.