Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLoginUser($user, $options)
- {
- // Initialize variables
- $success = false;
- // session_start();
- // Here you would do whatever you need for a login routine with the credentials
- //
- // Remember, this is not the authentication routine as that is done separately.
- // The most common use of this routine would be logging the user into a third party
- // application.
- //
- // In this example the boolean variable $success would be set to true
- // if the login routine succeeds
- // ThirdPartyApp::loginUser($user['username'], $user['password']);
- session_start();
- $_SESSION['valid_user'] = $user['username'];
- $success = true;
- // print_r($_SESSION);
- return $success;
- }
Add Comment
Please, Sign In to add comment