I have a website which uses wildcard subdomains. The subdomains can be anything, but a subdomain is always there (by default it's "www"). I want to be authenticated in every subdomain when I login.
When I authenticate in abc.example.com the JSESSIONID cookie is placed in abc.example.com. If I go to xyz.example.com then it doesn't find the cookie, so I'm logged out. I also use remember me function, that should work too.
What I tried so far is:
- placing the cookie in the parent domain (couldn't find out how to)
- copying the cookie for the subdomain (no idea how to)
Could someone point me to the right direction?