function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
digitsungdigitsung 

session management error

I am experiencing session error in moving from one PHP page to another. Here are the setup:
 
1. I have defined a URL custom tab. The URL is as follow:
 
 
2. connect.php ---
 
<?php
session_start();
$_SESSION['location'] = $_GET['serverurl'];
$_SESSION['sessionId'] = $_GET['sessionid'];
$_SESSION['wsdl'] = 'partner.wsdl.xml';
session_write_close();
?>
 
3. page2.php ---
 
<?php
session_start();
echo "page 2-5<br>";
echo "<br>";
echo "sessionID:(".$_SESSION['sessionId'].")<br>";
echo "location:(".$_SESSION['location'].")<br>";
echo "wsdl:(".$_SESSION['wsdl'].")<br>";
?>
 
When I run this URL in the SFDC custom tab, I got no data. However if I run this stand alone by entering sessionid and serverurl with any data, then I recevied proper outputs.
 
Can anyone help me with this?
 
Ted
SuperfellSuperfell
See the posts about setting up the P3P headers, so that the browser will maintain your cookies.