I attempted to use entityform with the autologout module to keep a users session alive as long as the user where interacting with a form.

Autologin does this by reacting on formUpdated events triggered by cores via behaviours in misc/form.js (http://cgit.drupalcode.org/drupal/tree/misc/form.js?h=7.x)

When i apply the attached patch that just adds the behaviour the events are triggered and the autologin code works as it should.

Comments

danquah created an issue. See original summary.

danquah’s picture

Status: Active » Needs review
StatusFileSize
new567 bytes
joelpittet’s picture

Just out of curiosity could that be added to all the forms via the autologout module with a hook_form_alter()?

danquah’s picture

It probably could - must admit it sounds like a more clean solution. https://www.drupal.org/project/autologout/issues/2922390 also seems to have encountered the same issue.

I'll probably won't find the time to re-implement the fix using that approach now that the attached patch has been working just fine for a couple of years and D8 probably would be a more appropriate place to start fixing the issue.

On the other hand I also totally understand if you'd rather keep this out of entityform for now.