Problems with sessions ?
Posted: Thu Sep 25, 2003 10:49 am
Hello All,
Have a problem, I run a log in page, which works fine, but I have moved the new newsest version of php, and now when you click a link inside the logged in area, it seems to act like you're not logged in and takes you back to the log in area.
The code to check is :
Does anyone have any ideas?
Cheers
RedRasper
Have a problem, I run a log in page, which works fine, but I have moved the new newsest version of php, and now when you click a link inside the logged in area, it seems to act like you're not logged in and takes you back to the log in area.
The code to check is :
Code: Select all
<?php
ob_start();
session_start();
if(!$_SESSION['auth']) {
header("login.htm");
die();
}
ob_end_flush();
?>Does anyone have any ideas?
Cheers
RedRasper