Jump to content

[SOLVED] Members access only


tecmeister

Recommended Posts

i am assuming you have a login page you could add a line like this to it

<?php
session_start();
$_SESSION['logged_in']='yes';
?>

then at the start of all your pages out

<?php
session_start();
if($_SESSION['logged_in']!='yes'){
//redirect to login.php and exit
header('Location: login.php');
exit;
}
//rest of your page
?>

 

Scott.

 

 

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.