Jump to content

Need to be logged in to veiw


dean7

Recommended Posts

My login script sets a session like

$_SESSION['SESS_LOGGEDIN'] = 1;

once the person is logged in.

 

Then on the top of my pages that I want to make sure they are logged in first, I put this:

if(isset($_SESSION['SESS_LOGGEDIN]) == FALSE){
	header("Location: " . $config_basedir . "login.php?error=1");
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.