headers must include http:/filename.php
when using these headers and session the session variable is lost why.please a workaround i am grateful i was creative enough to make the code i did and do not want and entire application redo. what is happening is session variable is not passing through an http: header to the result page if someone needs the code please
<? xxx lots of code
$valid_user = $row['staff_id'];
$_SESSION['valid_user'] = $valid_user;
echo "<form method='POST' action='transfer.php'<p>What do you choose to do?<br><select name='choose'><option value='Client_information'>Client Info</option><option value='Client_med_review'>Client Med Review</option><option value='Client_psycho_social'>Client Psycho Social</option><option value='Client_doctor'>Client Doctor</option><option value='Client_person_centered_plan'>Person Centered Plan</option><option value='Client_legal'>Client Legal</option><option value='Client_family'>Client Family</option>";
echo "</select><input type='submit' value='GO TO'></form>";
$valid_user = $row['staff_id'];
?>
<?session_start();
$SESSION['valid_user'];
ob_start();
switch($POST['choose']){
case "Client_information":
header("Location: [url]http://xxx.xxx.xxx.xxx/behavioral_logistics/client_info.php[/url]");
break;
xxxs lots of code
?>
<? ob_start();
session_start();
header("Cache-Control: Private");
echo $_SESSION['valid_user'];
?>