I have a session code here that i want to redirect the all users if the session username is not equal to administrator..but my code is not working..can anyone know whats the problem? Please
code here:
<?php
session_start();
if(isset($_SESSION['username'])!='administrator'){
header('Location: ../index.php');
}
?>