Guest User

Untitled

a guest
Jul 26th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $validPassword = password_verify($passwordAttempt, $user['password']);
  2. if($validPassword) {
  3. $_SESSION['user_id'] = $user['id'];
  4. $_SESSION['logged_in'] = time();
  5. header('Location: home.php');
  6. exit;
Advertisement
Add Comment
Please, Sign In to add comment