Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.47 KB

File metadata and controls

19 lines (14 loc) · 1.47 KB

Cookie Sharing Sample App

The sample illustrates cookie sharing across three apps that use cookie authentication:

Project Description
CookieAuth.Core ASP.NET Core Razor Pages app without using ASP.NET Core Identity
CookieAuthWithIdentity.Core ASP.NET Core MVC app with ASP.NET Core Identity
CookieAuthWithIdentity.NETFramework ASP.NET Framework MVC app with ASP.NET Identity

Instructions:

  1. Run the CookieAuth.Core app. Register a user. The app authenticates the user when the user is registered. Sign the user out.
  2. In the same browser session, run the CookieAuthWithIdentity.Core app. Register the same user as used with the Core app. The app authenticates the user when the user is registered. Sign the user out.
  3. In the same browser session, run the CookieAuthWithIdentity.NETFramework app. Register the same user as used with the other apps. The app authenticates the user when the user is registered. Sign the user out.
  4. Sign in the user to any of the three apps. The authentication cookie is shared among the apps. Note that the user is automatically signed into the other two apps.
  5. Sign out the user from any of the apps. Note that the user is automatically signed out of the other two apps.

This sample demonstrates the features described in the Share cookies among apps topic.