Hi
I am having a simple login & logout script which are as follow:
login.php
<?php
session_start() ;
$_SESSION["username"]=$_POST["username"];
?>
logout.php
<?php
session_start() ;
session_unset() ;
session_destroy ();
?>
The problem is:
After runnig the logout script if the user hits the back button on the
browser he appears to be logged in again i.e. the sessions are not
destroyed or the browser caches the info. Please help.
I am having a simple login & logout script which are as follow:
login.php
<?php
session_start() ;
$_SESSION["username"]=$_POST["username"];
?>
logout.php
<?php
session_start() ;
session_unset() ;
session_destroy ();
?>
The problem is:
After runnig the logout script if the user hits the back button on the
browser he appears to be logged in again i.e. the sessions are not
destroyed or the browser caches the info. Please help.
Comment