You are here

function janrain_capture_token_expired in Janrain Registration 7

Same name and namespace in other branches
  1. 6 janrain_capture.pages.inc \janrain_capture_token_expired()
  2. 7.4 includes/janrain_capture.endpoints.inc \janrain_capture_token_expired()
  3. 7.2 includes/janrain_capture.endpoints.inc \janrain_capture_token_expired()
  4. 7.3 includes/janrain_capture.endpoints.inc \janrain_capture_token_expired()

Callback the janrain_capture/token_expired menu item. Logs out a user due to an expired session.

3 string references to 'janrain_capture_token_expired'
janrain_capture_init in ./janrain_capture.module
Implements hook_init().
janrain_capture_menu in ./janrain_capture.module
Implements hook_menu().
janrain_capture_token_expired_access in ./janrain_capture.module
Access callback for janrain_capture_token_expired().

File

./janrain_capture.pages.inc, line 271
User page callbacks for the janrain_capture module.

Code

function janrain_capture_token_expired() {
  global $user;
  $tmp = NULL;
  session_destroy();
  user_module_invoke('logout', $tmp, $user);
  $user = drupal_anonymous_user();
  drupal_set_message(t('Your session has expired. Please sign in again.'), 'error');
  drupal_goto();
}