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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
tecmeister Posted February 9, 2008 Author Share Posted February 9, 2008 Thanks alot mate. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.