ToeBee
02-25-2006, 09:34 PM
Hey im still a PHP novice and I have set up a basic members area. I just want to know how secure my script is. From what I have read $_SESSIONS is secure but im wonderin how secure. After I check there username and password against the database i register a session.
session_register("loggedin");
$_SESSION['loggedin'] = "true";
Then on the pages I want only the members to be able to view I start them off with the if statement
if(!$_SESSION['loggedin']){
header("Location: redirect.php?action=not-logged-in");
}
Is this a secure way of doing things? Or can $_SESSIONS be faked like $_POST, $_GET, and $_COOKIE. Thanks for any help.
session_register("loggedin");
$_SESSION['loggedin'] = "true";
Then on the pages I want only the members to be able to view I start them off with the if statement
if(!$_SESSION['loggedin']){
header("Location: redirect.php?action=not-logged-in");
}
Is this a secure way of doing things? Or can $_SESSIONS be faked like $_POST, $_GET, and $_COOKIE. Thanks for any help.