Forum Moderators: phranque
I have setup a subdomain; subdomain.domain.com.
You can access user's profiles using this subdomain such as [subdomain.domain.com...]
It re-routes you to a script using mod_proxy;
RewriteRule ^(.*)$ [domain.com...] [P]
Now this all works fine.
You can access [subdomain.domain.com...] and it will show you the data from [domain.com...] however the URL stays at [subdomain.domain.com...]
Here is the problem.
If you log into www.domain.com the cookie is set and all is fine. You can browse the entire website and stay logged in.
However if you access [subdomain.domain.com...]
You get logged out.
Even if you go back to www.domain.com you are still not logged in anymore.
I have been told I need to use ProxyPassReverseCookieDomain in order to solve this but I am unsure of what my settings should be in the domain.com.conf file.