Please I need help with User validation on php webpage?

Pls I need help on this validation script. Even after logout and without login, hitting on the back button on the browser, I can access the assigned webpage. What might be wrong?? Please I need help on this cos I need to get it resolve as soon as possible.


<?php
//Start session
session_start();

//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['login']) xor (trim($_SESSION['login']) == '')) {
header("location: login.php");
exit();
}
?>
Here also is the logout script...

<?php
session_start();
session_destroy();
header( 'Location: index.html' ) ;
?>
 
Back
Top