Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if ($checklogin_result == 1) {
  2. //a user with that username and matching password exsist so start the users session
  3. session_start();
  4.  
  5. $sp_getsessionid = "CALL jid_getsessionid('$username','$password')";
  6. $rs_getsessionid = mysqli_query($conn, $sp_getsessionid);
  7. while($row = mysqli_fetch_array($rs_getsessionid)) {
  8. $_SESSION["id"] = $row['user_uid'];
  9. }
  10.  
  11. echo "Logged in with session id of: " . $_SESSION['id'] . " you can now go to your <a href='home.php'>home</a> and begin using all our wonderful features!";
  12. }
Add Comment
Please, Sign In to add comment