Is this code valid?
<a href="#" onclick="<?php session_destroy();?>">Logout</a>
Make a page called logout.php
Logout.php_____
<?php
Session_start();
Session_destroy();
header('Location: ' . $_SERVER['HTTP_REFERER']);
?>
Your page______
<a href="Logout.php">Logout</a>