Note that there are some explanatory texts on larger screens.

plurals
  1. PO.ASPXAUTH cookie visible in firebug but can't be retrieved in C# code
    primarykey
    data
    text
    <p>I have two .NET C# projects. They will be deployed under the same domain, e.g. domain.com.</p> <p>One project was created a few years also. It's using .NET 4.0. Let's call it MAIN_1. This project uses another external project to authenticate users, which is even older (.NET 3.5). Let's call it AUTH_PROJ. I am creating a new project using MVC4 and .NET 4.5 in VS2012. Let's call it MAIN_2. MAIN_1 and MAIN_2 will be deployed under the same domain (e.g. domain.com). My goal is to make user login in MAIN_1 and also authenticated in MAIN_2. I searched online and found this post <a href="http://www.codeproject.com/Articles/106439/Single-Sign-On-SSO-for-cross-domain-ASP-NET-applic" rel="nofollow">http://www.codeproject.com/Articles/106439/Single-Sign-On-SSO-for-cross-domain-ASP-NET-applic</a> very interesting and userful. I tested the single sign on by making some simple MVC projects in Visual Studio 2012 Professional:</p> <ol> <li>Project 1: .NET4.5 MVC4 internet project. => Website 1</li> <li>Project 2: same as Project 1. => Website 2</li> <li>Project 3: .NET 4 MVC3 internet project. => Website 3</li> <li>Project 4: same as Project 2. => Website 4</li> </ol> <p>In this 4 projects, I added the same machine key and add domain="localhost" to forms authentication in Web.config files.</p> <p>Then I tested the single sign on. I created an account in Website 1, logged in. I opened Website 2 and it's already logged in. Cool! Same for Website 3 and 4.</p> <p>But when I mixed different frameworks, nothing works.</p> <p>I checked the browser cookie in firebug. .ASPXAUTH cookie stays there. But if the cookie is created by Project 1, and I debug Project 3, I can get all cookies exept .ASPXAUTH cookie. It seems that .ASPXAUTH depends on framework and although it's visible in firefox, the other framework project can't see it.</p> <p>Can anyone help me figure out why .ASPXAUTH cookie becomes invisible in C# code and is there any other way to make single sign on work please? Thank you</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload