DiarYofaMadmaN
05-02-2004, 05:40 AM
<?php
session_start();
echo phpversion();
header("Cache-control: private"); //IE6 Fix
if (($_SESSION['userstatus'] = 'admin')) {
echo 'Access Allowed';
$_SESSION['userstatus'] = FALSE; //or use = ''
} else {
echo 'Access Denied';
}
?>
My php version is 4.3.3. I'm prettying sure the syntax for unloading the session is correct but it's not unloading... I have no clue. I also tried: session_unregister('userstatus'); and unset($_SESSION['userstatus']); but none of them seem to want to work. Can anyone help me with the right syntax?
-Thanks,
Rich
session_start();
echo phpversion();
header("Cache-control: private"); //IE6 Fix
if (($_SESSION['userstatus'] = 'admin')) {
echo 'Access Allowed';
$_SESSION['userstatus'] = FALSE; //or use = ''
} else {
echo 'Access Denied';
}
?>
My php version is 4.3.3. I'm prettying sure the syntax for unloading the session is correct but it's not unloading... I have no clue. I also tried: session_unregister('userstatus'); and unset($_SESSION['userstatus']); but none of them seem to want to work. Can anyone help me with the right syntax?
-Thanks,
Rich