Looking for help. I am new to the ob_start and believe I'm not using this correctly as users are sent back to my load-data.php after browsing my website without cause. I've paid very close attention to each page that is loaded, and it looks like there is something kept on the client that get's reposted? The code I use loads FB data, then based on whether a new user, or existing user I redirect using this code...
ob_start();
...Load FB Data then
if(isset($_SESSION['user_id']) && $isNewUser == 0)
{
header('Location:loading-data.php?x=4');
exit();
}
else
{
$_SESSION['user_id'] = $user_id;
This 'loading-data.php' is called a number of times for some users and I'm not sure why, but have a feeling that there is something in the buffer on the client's machine that reposts stacked memory? What is the best coding technique to insure it doesn't get posted more than once?