<?php include("functions.php"); $message=""; if( $_POST["user_name"] == "admin" and $_POST["password"] == "admin") { $_SESSION["user_id"] = 1001; $_SESSION["user_name"] = $_POST["user_name"]; } else { $message = "Invalid Username or Password!"; } } if(!isLoginSessionExpired()) { } else { } } $message = "Session is Expired. Please Login Again."; } ?>