I'm coding a "users-only" access for a site, and when the user is not logged in the dashboard is redirecting to the login page.
<?php
session_start();
$logged= $_SESSION['logged'];
if(!$logged){
header("Location:http://www.someweb.com/system/login.php?logged_off=1");
}
?>
but the login page is not receiving the GET variable, can you please tell what am I doing wrong?