Hi
I have searched the forum and I seem to be doing things right, although the following php does not work:
<?php
session_start();
include("vars.php");
$_SESSION = array();
session_destroy();
flush();
header("Location: $self_url?logged-out");
exit;
?>
The self_url points to my home page, but it stays on logout.php (the code is contained in logout.php). I have hard coded my url in but nothing. It stays at logout.php which is so frustrating!!!
Any help greatly appreciated as I am seriously frustated now.
Cheers
Nick
Nick (Everton Rool OK!)
I have searched the forum and I seem to be doing things right, although the following php does not work:
<?php
session_start();
include("vars.php");
$_SESSION = array();
session_destroy();
flush();
header("Location: $self_url?logged-out");
exit;
?>
The self_url points to my home page, but it stays on logout.php (the code is contained in logout.php). I have hard coded my url in but nothing. It stays at logout.php which is so frustrating!!!
Any help greatly appreciated as I am seriously frustated now.
Cheers
Nick
Nick (Everton Rool OK!)