Home > Article > Backend Development > Solution to sharing session across http and https cross-domain
The following is the implementation code, which is divided into http and https parts. 1, http part:
2, HTTPS part
Instructions: There is a bit of a security issue. The transmission of the session id is not encrypted and can be detected by sniffing, obtaining the session id and then obtaining the session data. It is recommended to encrypt this ID. |