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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:22:08+00:00 2026-05-10T15:22:08+00:00

I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath

  • 0

I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath the application are several 2.0 apps. To completely logout a user can I just logout of the 1.1 app with FormsAuthentication.SignOut or is it more complicated than that?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T15:22:09+00:00Added an answer on May 10, 2026 at 3:22 pm

    What you are looking to do is called Single Sign On and Single Sign Off. There are differences based on how you have the applications set up. I will try to clarify where those differences come into play.

    To implement single sign on and single sign off you need to make the cookie name, protection, and path attributes the same between all the applications.

    <authentication mode='Forms'>     <forms name='.cookiename'            loginUrl='~/Login.aspx'             timeout='30'             path='/' /> </authentication> 

    Next you need to add the machine keys and they need to be the same between all your applications.

    <machineKey validationKey='F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902'             encryptionKey='F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC'             validation='SHA1' /> 

    Are you using second or third level domains for the applications? If so you will need to do a little bit more by adding the domain to the cookie:

    protected void Login(string userName, string password) {     System.Web.HttpCookie cookie = FormsAuthentication.GetAuthCookie(userName, False);     cookie.Domain = 'domain1.com';     cookie.Expires = DateTime.Now.AddDays(30);     Response.AppendCookie(cookie); } 

    Now to do single sign off, calling FormsAuthentication.SignOut may not be enough. The next best thing is to set the cookie expiration to a past date. This will ensure that the cookie will not be used again for authentication.

    protected void Logout(string userName) {     System.Web.HttpCookie cookie = FormsAuthentication.GetAuthCookie(userName, False);     cookie.Domain = 'domain1.com';     cookie.Expires = DateTime.Now.AddDays(-1);     Response.AppendCookie(cookie); } 

    I am taking into consideration you are using the same database for all the applications. If the applications use a separate database for registration and authentication, then we will need to do some more. Just let me know if this is the case. Otherwise this should work for you.

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

Sidebar

Related Questions

I am working on a web application (asp.net mvc3) I have a Main div.
I have an ASP.NET application with a <codeSubDirectories> section in web.config. My main project
I have an ASP.NET MVC web application which is hosted by an external provider,
I have an ASP.NET MVC app that shows news articles and for the main
I have 2 web application projects. One is my asp.net MVC app and the
I have a Silverlight 4 application which is hosted in asp.net website as ClientBin
I have an asp.net c# web application where a user can log in and
We have a Asp.net webforms webapplication. The solution has the following structure: MySolution\ MySolution.Main\
I have about 10-12 websites (main site is classic ASP, others are ASP.NET 2).
I have an ASP.Net 4.0 application, and within it is a folder called Forum,

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.