You need to sign in to do that
Don't have an account?
digitsung
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['sessionId'] = $_GET['sessionid'];
$_SESSION['wsdl'] = 'partner.wsdl.xml';
session_write_close();
header('Location: https://dev.advisorEassist.com/SFDCPHP/LinkTest/page2.php');
?>
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>";
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
Superfell
See the posts about setting up the P3P headers, so that the browser will maintain your cookies.