Can I share sessions between different subdomains without setting the domain name to .domain.com? After this setting, the subdomain name of the static file will also be set, and the subdomain name of the static file will not be contaminated. I don't know how to do this? Can I share sessions between different subdomains without setting the domain name to .domain.com? After this setting, the subdomain name of the static file will also be set, and the subdomain name of the static file will not be contaminated. I don't know how to do this?
Reply content:
Can I share sessions between different subdomains without setting the domain name to .domain.com? After this setting, the subdomain name of the static file will also be set, and the subdomain name of the static file will not be contaminated. I don't know how to do this?
The Session depends on the Cookie for recording. The domain name is actually the scope of the Cookie.
You can use the URL to record Session IDs to avoid cookies, but this is definitely not a good solution.
In addition, I don't fully understand why I should be afraid that the domain name of static files will be contaminated, and the Session will be contaminated with static files.