I have a site (rp.example.com) that uses PHP Sessions. It works fine when the site is accessed through that subdomain.
I have a Reverse Proxy setup so that the above site is accessible vie two different domains (anotherdom.com/rp & yetanotherdom.com/rp).
The $_SESSION variable is empty and does not update when taking action on the site through these two Reverse Proxy URLS.
I have read that "$_SESSION is tied to a cookie named PHPSESSID, which is by default available only to the exact domain name where you use it."
In my case, it needs to be available to those 2 Reverse Proxy URLs as well. Any way I can do this?
Thanks
question from:
https://stackoverflow.com/questions/65894174/session-not-available-behind-reverse-proxy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…