I print the name of logged users from database throughout the domain and sub-domains.
To pass session from one page to another in domain I use the function
session_start();
which serves its purpose perfectly on PHP server of one host but it's not working at all on the application server of the other host.
Similarly, to pass session from one page to another between domain and sub-domains I use the function
session_set_cookie_params
That serves its purpose perfectly on PHP server of one host but it's not working at all on the application server of the other host.
current session configuration on PHP server of the other host is as following:
session.auto_start Off
session.cookie_path /
session.save_path /tmp
I'm using the exact same application in two different sites with separate hosts. What's going wrong with the application server configuration of the other host?
Example:
one page to another page in www.mysite.com itself and between www.mysite.com, www.sub1.mysite.com and www.sub2.mysite.com