loggout.php fails to properly redirect

Giganews Newsgroups
Subject: loggout.php fails to properly redirect
Posted by:  Phil Powell (soazi…@erols.com)
Date: Sat, 6 Sep 2003

loggout.php doesn't exactly redirect properly, and I have no idea what to do
about it... I need to bust out of the frame and go to top, so, how do I do
it?

Code that I have that fails:

<?

require_once('/home/nordicnet.no/include/nordicnet_global_vars_functions.php
');

  setcookie('nordicnet_registration', 0, time() - 86400, '/'); // DELETE
COOKIE

?>

<html>
<head>
<meta http-equiv=Refresh content="0;URL=http://<?= $serverName
?>/index.php">
<script>
<!--
  location.target = top;
  location.href = 'http://<?= $serverName ?>/index.php';
//-->
</script>
</head>
<body>
<?= $font ?>Om du er her <a href=http://<?= $serverName ?>/index.php>klikk
her</a></font>
</body>
</html>

Phil

Replies