phpretard Posted September 30, 2008 Share Posted September 30, 2008 I am losing my session $vars after redidecting within a frameset? Any suggestions. This code works great without frames involved so I was hoping there was a trick to a frame. $result = mysql_query("SELECT * FROM table WHERE this='$that"); while($row = mysql_fetch_array($result)) { $MemberID=$row['MemberID']; $Type=$row['Type']; $UserID=$row['UserID']; $CLFirstName=$row['CLFirstName']; $CLLastName=$row['CLLastName']; } $_SESSION['MemberID']=$MemberID; $_SESSION['Type']=$Type; $_SESSION['UserID']=$UserID; $_SESSION['LastLog']="$DATE_TIME_STAMP"; echo "<pre>". print_r($_SESSION,true) ."</pre>"; <<< I KNOW THEY GET SET HERE header("Location: ?page=orderform"); <<< THEY"RE GONE WHEN YOU GET TO THIS PAGE } This is all done inside of a frame. Does anyone know what's wrong or the "trick" to passing session within frames? PS. Yes I hate frames...it's my only option. Quote Link to comment Share on other sites More sharing options...
phpretard Posted September 30, 2008 Author Share Posted September 30, 2008 Put this before session start and you're good to go! header('P3P: CP="CAO PSA OUR"'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.