//--------file1.php-------------
<?php session_start();
$_SESSION["s_name"]="Jahidul Islam";
echo "<a href='file2.php'>Go to File2</a> ";
?>
//--------file2.php------------
<?php session_start();
echo $_SESSION["s_name"];
echo "<a href='file3.php'>Delete session</a> ";
?>
//-----------file3.php-----------
<?php session_start();
unset($_SESSION["s_name"]);
session_destroy();
echo "<a href='file2.php'>Goto file2</a> ";
?>
Comments 0