How to transfer PHP session data from one Apache virtual host to another? I am currently running Apache 2.2.17 and PHP 5.3.3, and I have configured one host to manage one input application, and I need to transfer this to two other virtual hosts that are running separate applications. This is what I intend to develop further, but now transferring session data will be the easiest.
Currently, this code creates the first session in the SSO subdomain auth.domain.com, and then passes the user back to the app.domain.com application interface (was trimmed):
$user = new User;
$user->set_user_session();
Header("Location: $redirectURL");
exit;
The server is fully managed confidentially, so multi-user security is not a concern. However, if anyone sees any security issues that go beyond this, please let me know. If you know the best methodology, share it, and I will explore it further. I appreciate the help.
source
share