Advertisement
Guest User

coba.php

a guest
Mar 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. if($user == $dbuser && $pass == $dbpass){
  2.     echo "<h1>Login Berhasil</h1>";
  3.     $_SESSION['start'] = time();
  4.     $_SESSION['expired'] = $_SESSION['start'] + (30 * 60);
  5.     header("location:index.php");
  6. }else{
  7.     if(isset($_SESSION["salah"])){
  8.         $_SESSION["salah"]++;
  9.  
  10.     }else{
  11.         $_SESSION["salah"] = 1;
  12.     }
  13.     header("location:index.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement