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;
  }
}

Comments

RemovE’s picture

Thanks

deekayen’s picture

Status: Active » Needs review
StatusFileSize
new433 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.

  • elc committed e15bfa49 on 7.x-1.x authored by patrickharris
    fix: #2226873 Problem with autologout integration
    
    By: deekayen
    By:...
elc’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.