Jump to content

[SOLVED] sessions and frames


phpretard

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.