I have been working on a web application on my localhost (xampp) where I have two subdomains set up. Lets call these domains abc.localhost and xyz.localhost.
I have both of these set up in my host file to have an entry of
127.0.0.1 abc.localhost
127.0.0.1 xyz.localhost
I also have them set up in my vhost file like normal pointing to different locations.
My application is set up to go through abc.localhost first which is where i set up some cookies
setcookie('AUTHORIZATION', time()+3600, 0, '/', '.localhost');
setcookie('SOMEOTHERCOOKIE','here is the val',0,'/','.localhost');
this then forwards the user to xyz.localhost. In order for the user to get access to xyz.localhost the authorization has to be set by abc.localhost and pass over a cookie.
I have tried to change the ".localhost" to be xyz.localhost and every other combination i can think of. Leaving off the . does not work either.
Please help me figure this out. Thank you!