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

The Archive Base Latest Questions

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

I have an ASP .NET web application which uses Forms Authentication. Let’s call this

  • 0

I have an ASP .NET web application which uses Forms Authentication. Let’s call this application ‘Foo.’ I am creating another ASP .NET application called ‘Bar.’

What I want to have happen is the user logs into Foo, then clicks a link which takes them to a page in the Bar application. The Bar application should not require the Foo user to log in again. The Foo app should pass the security ticket to the Bar app and then the user can go about his/her business inside the Bar app.

I also want to restrict access to the Bar app. So if a user tries to access the Bar app without first logging in, they are redirected to the Foo login page.

Is this possible? If so, how do I implement this?

  • 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. 2026-05-11T15:40:11+00:00Added an answer on May 11, 2026 at 3:40 pm

    I did this once and it was between a PHP site and an ASP.NET site (me being the ASP.NET Developer but knowing some bits about PHP too).

    If App1 is the entry point for the user(s) then at logon App1 should create a key-value pair for that user that consists of the username and a generated key (a GUID for example). Programatically it should communicate with App2 and send this key (for example launch a background thread). Let’s say user JohnDoe logs in successfully on App1.

    App1 generates a key (3l3kjlk3j4lkj34, JohnDoe) and sends it to App2 via some kind of communication (for example calls via HTTP an URL such as http://www.app2.com/SetTempKey.aspx?userId=JohnDoe&key=3l3kjlk3j4lkj34 – a page that would allow only requests from a certain IP for security reasons).

    App2 will receive the temporary access key and store it. Let’s say that App2 has the login page at http://www.app2.com/login.aspx.

    In app1 you will generate a link to http://www.app2.com/login.aspx?tempKey=3l3kjlk3j4lkj34 with a decent label such as ‘Go to our app2’. When the user clicks the link the login.aspx page on app2 is called. Checking the querystring for the presence of the tempKey querystring parameter and then checking the validity of the key in the temporary keys stored app2 finds that this REALLY is JohnDoe.

    App2 logs him simply by calling FormsAuthentication.RedirectFromLoginPage(‘JohnDoe’, true) (first the username and then if the formsAuth cookie should be persistent/not_session_lived).

    … and that’s pretty much it.

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

Sidebar

Ask A Question

Stats

  • Questions 121k
  • Answers 121k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Two issues in your configure.ac file. First, the syntax of… May 12, 2026 at 12:25 am
  • Editorial Team
    Editorial Team added an answer This looks prototype-based. You probably need to set up your… May 12, 2026 at 12:25 am
  • Editorial Team
    Editorial Team added an answer For info, I don't recommend using BinaryFormatter for anything that… May 12, 2026 at 12:25 am

Related Questions

I have an ASP .NET web application which uses Forms Authentication. Let's call this
Duplicate: Should I pursue ASP.NET WebForms or ASP.NET MVC? We are developing an enterprise
Tonight I copied an ASP 2.0 web site onto a client's machine, and lo!
I'm working on an ASP.NET application that uses VB. I'm using a SQLReader/SQLCommand/SQLConnection within
We have an intranet asp.net web application which uses the OOTB ASP.net membership and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.