Code:
if(!isset($_SESSION['aid']))
{
header("location:index.php");
exit;
}
session_destroy();
echo "Successfully logged out from Admin Page";
?>
Finally I wrote the code as above.
After log out it dispelling the echo statement. When I refresh the page it is redirecting to the index page.....
Leave a comment: