When using ejectorseat with autologout module, autologout thinks ejectorseat ajax checks are user activity, and thus never logs out a user.
Ejectorseat needs to register its callback URL with autologout so it will be ignored.

function ejectorseat_autologout_prevent() {
  if (arg(0) == 'ejectorseat' && arg(1) == 'check') {
    return TRUE;
  }
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RemovE’s picture

Thanks

deekayen’s picture

Status: Active » Needs review
FileSize
433 bytes
bernman’s picture

Status: Needs review » Reviewed & tested by the community

This patch has been included in the Guardr (https://www.drupal.org/project/guardr) distribution for several years without issue.