Getting session info from different port

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
victorsk
Forum Commoner
Posts: 43
Joined: Thu Apr 19, 2007 6:55 pm

Getting session info from different port

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's nothing native. You will need to generate a cookie, use a database (and link) or some other method.
victorsk
Forum Commoner
Posts: 43
Joined: Thu Apr 19, 2007 6:55 pm

Post 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.
Post Reply