if($_SESSION['logged_in']==1){
//echo “You are already logged in as {$_SESSION['user_name']}. “;
}else{$_SESSION['logged_in']=0;}

if(isset($_POST['submit'])){
$user_name=$_POST['user_name'];
$user_pass=$_POST['user_pass'];
process_login($user_name,$user_pass);
if(isset($_SESSION['logged_in'])){
if($_SESSION['logged_in']==1){
//$_SESSION['redirect']=’home’;
//echo $_SESSION['no_rights'];
//header(‘location:/index.php’);
echo ‘
You are logged in as ‘.$_SESSION['user_name'] .’.

‘;

}else{echo “Incorrect Login…”;}
}else{echo “Incorrect Login…”;}
}else{echo “Enter you credentials”;}
//showSecurity();

// print_r($_SESSION);

?>