tecmeister Posted February 9, 2008 Share Posted February 9, 2008 Hello again, I was wondering what the script is for members access only. Thanks for you help tecmeister Link to comment https://forums.phpfreaks.com/topic/90183-solved-members-access-only/ Share on other sites More sharing options...
ratcateme Posted February 9, 2008 Share Posted February 9, 2008 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. Link to comment https://forums.phpfreaks.com/topic/90183-solved-members-access-only/#findComment-462454 Share on other sites More sharing options...
tecmeister Posted February 9, 2008 Author Share Posted February 9, 2008 Thanks alot mate. Link to comment https://forums.phpfreaks.com/topic/90183-solved-members-access-only/#findComment-462463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.