hi,
i'm learning and trying to develop a web with php. the logout script of mine seems not working since that after i pressed the logout link. i still get the greeting "welcome, 'username' ".
this is the script in the logout.php that
[PHP]
<html>
<head>
<meta http-equiv="refresh" content="1; URL=index.php">
</head>
<body>
<?
//destroy session and redirect user
session_start() ;
session_unset() ;
session_destroy ();
//redirect using meta tag
?>
</body>
</html>
[/PHP]
hope someone could help. thx
i'm learning and trying to develop a web with php. the logout script of mine seems not working since that after i pressed the logout link. i still get the greeting "welcome, 'username' ".
this is the script in the logout.php that
[PHP]
<html>
<head>
<meta http-equiv="refresh" content="1; URL=index.php">
</head>
<body>
<?
//destroy session and redirect user
session_start() ;
session_unset() ;
session_destroy ();
//redirect using meta tag
?>
</body>
</html>
[/PHP]
hope someone could help. thx
Comment