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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:51:14+00:00 2026-05-22T20:51:14+00:00

I have several applications running under a single website in IIS7. There are several

  • 0

I have several applications running under a single website in IIS7.

There are several pages within the website, but these are all pretty standard HTML pages, with not a lot going on.

The main website has its own application pool and each sub application has its own folder and associated application pool.

I use forms authentication and my own custom login system which uses an SQL database to store the credentials.

Each sub application has its own login page but they share the same credentials and database, which from what i understand is the best way as a user can access up to 4 of these application and a single username/password is most practical.

The issue I have is that when you sign in to one application, and then proceed to sign in to another, you are signed out of the first one. This is before any of the processes are shutdown or timed out etc.

What do I need to do to keep a user logged into multiple applications? But bear in mind that they may not have access to them all so they cannot share a single machine key or authenticaion cookie as I have read is possible.

Any help would be greatly appreciated as up to now I have simply used my own session based authentication which checks if they are logged in and I would like to move to the more up to date method of forms 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-22T20:51:15+00:00Added an answer on May 22, 2026 at 8:51 pm

    From comments:

    i simply check there credentials and then set the FormsAuthentication.SetAuthCookie for the username to true.

    This is what logs the user out of the other applications. You are effectively clobbering the authentication cookie used by the other applications. You may be able to get around this problem by ensuring that each application uses the same validation key, hash algorithm, decryption key and decryption algorithm by setting the following in the web config of each application:

    <machineKey 
        validationKey="..." 
        validation="SHA1" 
        decryptionKey="..." 
        decryption="AES" />
    

    This should enable each site to use the same authentication cookie.

    An alternate solution would be to ensure that each application uses a different cookie by setting the following:

    <authentication mode="Forms">
        <forms loginUrl="..." 
            protection="All" 
            name=".MyAppName"/>
    </authentication>
    

    In this scenario, you would set MyAppName to something different for each application. Users would still be able to use the same credentials across all applications but they will have to log into each application separately.

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

Sidebar

Related Questions

We have several wizard style form applications on our website where we capture information
We have a scripting engine (running under Windows) that launches another application several thousand
We have several Python 2.6 applications running on Linux. Some of them are Pylons
I have a database that I'm running several applications from. I like to separate
In my project, I have a several applications running. One of them is a
We have a number of services (mostly console applications) running across several remote computers.
in our asp.net app, we have several virtual directories. In IIS7, these are called
I have several properties that are dependent on the environment the application is running.
I have an Intranet http application running on several machines in our Windows domain;
I have several applications that are part of a suite of tools that various

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.