orangehill / bootstrap-session-timeout

Session timeout and keep-alive control with a nice Bootstrap warning dialog.
MIT License
159 stars 110 forks source link

No activity detected in Iframes #10

Closed Connor9220 closed 9 years ago

Connor9220 commented 9 years ago

Doesn't work when used with a page that has a iframe. (I.E. CKEditor etc).

vedraan commented 9 years ago

This is correct and is not a bug. Javascript is (to my knowledge) unable to catch any events happening in an iframe (keyboard or mouse). The best it can do is detect mouse enter on a frame and mouse leave but that still doesn't let you know what's happening when the user is over the iframe (is he active or not).

If you are however able to create a pull request that adds this ability I'd be happy to merge it.