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

The Archive Base Latest Questions

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

Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user

  • 0

Lets say that you have websites http://www.xyz.com and http://www.abc.com.

Lets say that a user goes to http://www.abc.com and they get authenticated through the normal ASP .NET membership provider.

Then, from that site, they get sent to (redirection, linked, whatever works) site http://www.xyz.com, and the intent of site http://www.abc.com was to pass that user to the other site as the status of isAuthenticated, so that the site http://www.xyz.com does not ask for the credentials of said user again.

What would be needed for this to work? I have some constraints on this though, the user databases are completely separate, it is not internal to an organization, in all regards, it is like passing from stackoverflow.com to google as authenticated, it is that separate in nature. A link to a relevant article will suffice.

  • 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-10T15:03:33+00:00Added an answer on May 10, 2026 at 3:03 pm

    Try using FormAuthentication by setting the web.config authentication section like so:

    <authentication mode='Forms'>   <forms name='.ASPXAUTH' requireSSL='true'        protection='All'        enableCrossAppRedirects='true' /> </authentication> 

    Generate a machine key. Example: Easiest way to generate MachineKey – Tips and tricks: ASP.NET, IIS …

    When posting to the other application the authentication ticket is passed as a hidden field. While reading the post from the first app, the second app will read the encrypted ticket and authenticate the user. Here’s an example of the page that passes that posts the field:

    .aspx:

    <form id='form1' runat='server'>   <div>     <p><asp:Button ID='btnTransfer' runat='server' Text='Go' PostBackUrl='http://otherapp/' /></p>     <input id='hdnStreetCred' runat='server' type='hidden' />   </div> </form> 

    code-behind:

    protected void Page_Load(object sender, EventArgs e) {     FormsIdentity cIdentity = Page.User.Identity as FormsIdentity;     if (cIdentity != null)     {         this.hdnStreetCred.ID = FormsAuthentication.FormsCookieName;         this.hdnStreetCred.Value = FormsAuthentication.Encrypt(((FormsIdentity)User.Identity).Ticket);     } } 

    Also see the cross app form authentication section in Chapter 5 of this book from Wrox. It recommends answers like the ones above in addition to providing a homebrew SSO solution.

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

Sidebar

Ask A Question

Stats

  • Questions 74k
  • Answers 74k
  • 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
  • added an answer The Popup control has this ability built-in. You can use… May 11, 2026 at 2:16 pm
  • added an answer I had similar problem with much more tables involved. We… May 11, 2026 at 2:16 pm
  • added an answer I think this is a fine way to make such… May 11, 2026 at 2:16 pm

Related Questions

Let's say that I have a Flash website where you could create an avatar
Lets say you have interface definition. That interface can be Operation . Then you
Using Rails v2.1, lets say you have an action for a controller that is
Let's say that you have overridden an object's equals() and hashCode() methods, so that
Say you have a legacy website running on an old code-base that offers certain
I have been looking for a while now to find a solution to accomplish
Let's say you recently discovered some major vulnerabilities in a couple of websites that
We are planning on adding multi-language support for our ASP.NET Website. I understand the

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.