how to destroy session , when back is clicked
Posted: Mon May 17, 2010 5:58 am
Hello friends
on my home page i am having Logout hyperlink . when i click on logout it redirects me on the logout page but when i press back option in browser it goes to home page (though the session has expired).
the system should be like: When i press back option on logout page it should go on logain page instead of my home page.
thank you
on my home page i am having Logout hyperlink . when i click on logout it redirects me on the logout page but when i press back option in browser it goes to home page (though the session has expired).
the system should be like: When i press back option on logout page it should go on logain page instead of my home page.
Code: Select all
<?php
session_start();
session_destroy();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Inventry</title>
<link rel="shortcut icon" href="/inventory/scripts/animated_favicon.gif" />
<link href="/inventory/stylesheets/public.css" media="all" rel="stylesheet" type="text/css" />
<body bgcolor="#cccccc" style="color:#000099">
<div id="header">
<h2><center>
Inventory System
</center></h2>
</div>
</head>
<br><br><br><br><br>
<center>Successful Logout</center><br>
<center><a href ="login.php">Click here to login again</a></center>