This topic is locked
[SOLVED]

 How to Protect Registration Page

3/2/2012 4:36:33 AM
PHPRunner General questions
C
ckapote author

Hi ,
i need to protect the Registration Page , so only already registered users can have access to create a new account user.
so no unathorised users have access to registration page
pls help

C
ckapote author 3/2/2012

ok i did it / opened register.php and wrote the following
session_start();

if(!@$_SESSION["UserID"])

{

$_SESSION["MyURL"]=$_SERVER["SCRIPT_NAME"]."?".$_SERVER["QUERY_STRING"];

header("Location: login.php?message=expired");

return;
}



Hi ,
i need to protect the Registration Page , so only already registered users can have access to create a new account user.
so no unathorised users have access to registration page
pls help