Hi all. I'm running into some problems with header('location:url') that I'm hoping someone can help with.
OS is RedHat 8.0, browser is opera 6.11 and PHP version is 4.2.2
I have a logout page in my application which has the following code in it:
<?php
session_start();
session_destroy();
header('Location:/wms/index.php');
?>
However, whenever I hit the logout button, the browser goes to logout.php but does not redirect to /wms/index.php.
Instead, all I see is logout.php in the address bar, and the following:
Redirected to:
----------------------------------------------------------------------------------
Generated by Opera ©
If I hit F5 to reload the page then it redirects to /wms/index.php as it's supposed to.
Can anyone give me an idea as to what the problem is?
Thanks in advance,
P.