i made a website which had log in capabilities and when not logged in the user was directed to index2.html
and when logged in user entered index.html. here there was a logout link \logout.php which always gave successful logout. but when it redirected to \index.html no logout had took place ?? index2.html had a form of username and password which were validated by login.php.
i pls. need help
http://chat.megh.tk/
username : anonymous
password : password
index.html
[php]<?php
session_start();
if (!(isset($_SESSION[‘userName’]))||($_SESSION[‘userName’]=="")) echo ("");
else
echo $_SESSION[‘userName’];
?>
<title>mChat</title>
</head>
<body>