Hi Jacob,
Will check this and let you know on it.
Thanks
Hi Deepen
Have got time to look into this?
/Jacob
Hello Jacob,
Do you mean stop logout counter when you hover inside an iframe ? because only having iframes in a page does not seem to stop the behaviour of the plugin and seems to work fine here. Thanks.
Hi Deepen
Could you please try this:
– Set the timeout to 1 minuter for your user.
– Create an iframe to af external website – eg. google.com
– Login as the user, select the iframe and use it without the mouse leaving until you see the “Last active” message in your log.
Can you recreate this?
I’m just asking if its possible to track mouse-movement and keypresses inside an iframe, because the plugin thinks I am inactive whenever an iframe is in use…
Thanks
/Jacob
Hi Jacob,
I saw the problem. Seems when you are in iframe view jquery is not tracking movements. Checking on this for solutions. Thanks.
Hi Jacob,
Sorry for late reply and testing. Here’s a quick solution and only possible solution. If you know code please try pasting below code in inactive-logout/assets/js/inactive-logout.js. Put below after line 65 i.e inside “POST” function.
var elem = document.activeElement;
//IF ACTIVE ELEMENT is clicked inside an iframe then track this following and reset timer again. So, do not logout user from here.
if(elem && elem.tagName == ‘IFRAME’){
ina__resetTimer();
console.log(“You are browsing inside an IFRAME!”);
} else {
console.log(“Last Active on: ” + Date.now());
}
Please note that this will only work when you have clicked inside an iframe and this is the only solution. Please try it out in yours and lemme know if it works. I’ll push this into next update.
Thanks
Hello Deepen
I have tested your suggestion and it works very well.
It is not really what I intended because the user can be inactive after clicking inside an iframe…
But thanks anyways
/Jacob
Hi Jacob,
I don’t know whether exactly it points to your fix but i have added iframe to latest version. So, closing this thread. Thanks.
Please open up another one if you have an issue.