I used this logout page using sessions a while ago and it used to work
great, but now it doesn't work. The only thing i have changed is my version
of php. Can someone take a look and see what i have to change?
<?
session_start();
$old_user = $valid_user;
$result = session_unregister("valid_user");
session_destroy();
?>
then a little further down i have this....
<php?
if (!empty($old_user)) {
if ($result) {
echo "Logged out.<br>";
} else {
echo "Could not log you out.<br>";
}
} else {
echo "You have not logged in; therefore, you cannot logout.<br>";
}
?>
It seems to log me out still, but it always gives me the "you have not
logged in; therefor, you cannot logout" message. i also checked it with a
script to see if my original sessions were actually registering and it
seemed that they were. i am stumped. Any ideas would be greatly appreciated.
Thanks.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php