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. Link to comment https://forums.phpfreaks.com/topic/126399-solved-sessions-and-frames/ 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"'); Link to comment https://forums.phpfreaks.com/topic/126399-solved-sessions-and-frames/#findComment-653633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.