hi
when i click the previous page button it was gng to logout page the sesion was not destroying when iwas using this code please help me
<?php
session_start();
session_unset($_SESSION['uname']);
session_destroy();
header ("Location: login.php");
?>