Browse Source

Update POST.md

pull/19253/head
maliming 3 years ago
parent
commit
6b57c054f2
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 6
      docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md

6
docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md

@ -2,9 +2,9 @@
## Introduction
Share cookies between subdomains is a common requirement in web development. For example, you have a website with multiple subdomains, and you want to share the login status between these subdomains.
Share cookies between subdomains is a common requirement in web development. For example, you have a website with multiple subdomains, and you want to share the login status between these subdomains. Once a user logs in to one subdomain, the user should be logged in to all subdomains.
Once a user logs in to one subdomain, the user should be logged in to all subdomains. This article will show you how to achieve this in an ASP.NET Core application.
This article will show you how to achieve this in an ASP.NET Core application.
## Implementation principle
@ -78,6 +78,8 @@ Set-Cookie: .AspNetCore.Culture=c%3Den%7Cuic%3Den; expires=Mon, 09 Mar 2026 02:0
The subdomains can share the `.AspNetCore.Culture` cookie now.
In another community article we use same middleware to [fix the Chrome login issue for the IdentityServer4](https://community.abp.io/posts/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n)
## Summary
The `CookiePolicy` middleware provides a way to control cookies in an ASP.NET Core, It very useful if you have more complex requirements for Cookies.

Loading…
Cancel
Save