Skip to content

Instantly share code, notes, and snippets.

@levidurfee
Created March 1, 2015 22:06
Show Gist options
  • Save levidurfee/5950e784c0bfbaff9ff9 to your computer and use it in GitHub Desktop.
Save levidurfee/5950e784c0bfbaff9ff9 to your computer and use it in GitHub Desktop.
if post process login
<?php
if(isset($_POST["username"])) {
if($users->login($_POST["username"], $_POST["password"])) {
$_SESSION["logged_in"] = true;
$_SESSION["usersId"] = $users->usersId;
$_SESSION["username"] = $users->username;
$_SESSION["email"] = $users->email;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment