Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picking up PERL session variables with PHP

Status
Not open for further replies.

thebubbleboy

Programmer
May 6, 2003
3
GB
I'm working on a project where I'm adding a php function onto a development written in perl. There are a few session variables defined by the perl code which I need to use. The session id is also being written in a browser cookie.

I'm trying to use the following code to pick up the session variables but it's just not working

session_name($_COOKIE["sessionid"]);
session_start();
echo $_SESSION["variable_specified_by_perl_script"];

I've set session auto start to off and session use cookie to off as well

Any ideas as the work around will be big, long and ugly.

Thanks

Ish
 
are you sure that the value of the $_COOKIE['sessionid'] is being properly sent and received? instead of storing the session name like this, why not just specify it? Note that session_id is not the same as the session_name.

Code:
session_name("some session name");
session_start();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top