You are here

function oauth2_user_expire in OAuth2 Login 8

Same name in this branch
  1. 8 oauth2_user/profile.inc \oauth2_user_expire()
  2. 8 oauth2_user/oauth2_user.api.php \oauth2_user_expire()
Same name and namespace in other branches
  1. 7.2 oauth2_user/profile.inc \oauth2_user_expire()
  2. 7.2 oauth2_user/oauth2_user.api.php \oauth2_user_expire()

Remove oauth2_user from the session. This will cause the profile to be refreshed from the server.

File

oauth2_user/profile.inc, line 46
OAuth2 user profile.

Code

function oauth2_user_expire() {
  unset($_SESSION['oauth2_user']['profile']);
}