<?
if($action=="**") {
if($adminpassword == "***") {
setcookie ("adminloggedin", "yes", "+3600");
header("Location: index.php");
}else { echo "Wrong password";}}
if($action == "logout") {
setcookie ("adminloggedin", " ", "-3600");
header("Location: index.php");
}else{}
?>
First is that secure if not can someone give me the code to make it secure??
Next Can someone show me what code to use to grab the users information once they have loged in EG: welcome <a href="$profile">$whoeverlogedin</a>
if someone could help me with that i would be greatfull