function janrain_capture_token_expired in Janrain Registration 6
Same name and namespace in other branches
- 7.4 includes/janrain_capture.endpoints.inc \janrain_capture_token_expired()
- 7 janrain_capture.pages.inc \janrain_capture_token_expired()
- 7.2 includes/janrain_capture.endpoints.inc \janrain_capture_token_expired()
- 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_menu in ./
janrain_capture.module - Implements hook_menu().
- janrain_capture_token_expired_access in ./
janrain_capture.module - Access callback for janrain_capture_token_expired().
- janrain_capture_ui_init in ./
janrain_capture_ui.module - Implements hook_init().
File
- ./
janrain_capture.pages.inc, line 302 - User page callbacks for the janrain_capture module.
Code
function janrain_capture_token_expired($token) {
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();
}