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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.