function hook_session_limit_bypass in Session Limit 6.2
Same name and namespace in other branches
- 7.2 session_limit.api.php \hook_session_limit_bypass()
Prevent session limitation checks at page load.
Session limit module checks for active sessions during hook_init. If a particular path or page load or context may mean that session checks should not occur.
Return value
bool TRUE if the current page request should bypass session limitation restrictions.
1 function implements hook_session_limit_bypass()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- session_limit_session_limit_bypass in ./
session_limit.module - Implements hook_session_limit_bypass().
1 invocation of hook_session_limit_bypass()
- _session_limit_bypass in ./
session_limit.module - Execute the session limit bypass hook.
File
- ./
session_limit.api.php, line 21 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_session_limit_bypass() {
if (arg(0) == 'session' && arg(1) == 'limit' || arg(0) == 'logout') {
return TRUE;
}
}