function session_limit_page_submit in Session Limit 6.2
Same name and namespace in other branches
- 5 session_limit.module \session_limit_page_submit()
- 6 session_limit.module \session_limit_page_submit()
- 7.2 session_limit.module \session_limit_page_submit()
Handler for submissions from session_limit_page().
File
- ./
session_limit.module, line 424 - Limits multiple sessions per user.
Code
function session_limit_page_submit($form, &$form_state) {
global $user;
if ($user->sid == $form_state['values']['sid']) {
drupal_goto('logout');
}
else {
session_limit_invoke_session_limit($form_state['values']['sid'], 'disconnect');
drupal_goto();
}
}