Page 1 of 1

Getting session info from different port

Posted: Tue May 22, 2007 10:35 am
by victorsk
Hello,

I have two web servers running: Apache for PHP and Tomcat for our web portal both run on different ports. I am trying to find a way of getting session information obtained when user logs in on Tomcat port 80 and obtained it with PHP using $_SESSION['USER_ID'] but Apache runs on 8080 and so session is not obtained.

Could somebody please tell me if there is an accessor method with PHP that can do this? I am new to PHP but have found there are a lot of handy methods which do things which I thought were at first difficult to implement separately.

Please, let me know,

Thank you,
Victor.

Posted: Tue May 22, 2007 10:52 am
by feyd
There's nothing native. You will need to generate a cookie, use a database (and link) or some other method.

Posted: Tue May 22, 2007 10:59 am
by victorsk
Hi,

Thanks for replying. I've looked into PEAR's HTTP_SessionServer: http://pear.php.net/package/HTTP_SessionServer

Looks promising but not 100% sure if it will work. Any comments on this?

Thanks,
Victor.