Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $validPassword = password_verify($passwordAttempt, $user['password']);
- if($validPassword) {
- $_SESSION['user_id'] = $user['id'];
- $_SESSION['logged_in'] = time();
- header('Location: home.php');
- exit;
Advertisement
Add Comment
Please, Sign In to add comment