Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($user == $dbuser && $pass == $dbpass){
- echo "<h1>Login Berhasil</h1>";
- $_SESSION['start'] = time();
- $_SESSION['expired'] = $_SESSION['start'] + (30 * 60);
- header("location:index.php");
- }else{
- if(isset($_SESSION["salah"])){
- $_SESSION["salah"]++;
- }else{
- $_SESSION["salah"] = 1;
- }
- header("location:index.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement