Comments (7)
I believe this version built upon JillElaines is more stable and also accommodates both JQuery UI and Bootstrap UI's.
https://www.npmjs.com/package/jquery-idleTimeout-plus
https://github.com/LinearSoft/jquery-idleTimeout-plus
Hope this helps.
Regards,
Richard Hetherington
Senior Web Developer
Aztec Retail Solutions
c/o John Smith & Son Group Ltd
Dragon House
Headlands Business Park
Ringwood,
Hampshire
BH24 3PB
Tel: +44 (0)1425 485957 ext. 315
Fax: +44 (0)1425 489857
From: blizznet [mailto:[email protected]]
Sent: 14 September 2016 20:40
To: JillElaine/jquery-idleTimeout
Subject: [JillElaine/jquery-idleTimeout] IE recursive loop crash. (#40)
Chrome, FireFox are fine with the multiple tabs.. Works as expected
IE on the other hand (with DevEx Controls) blows up with more than 3 open tabs.
JavaScript critical error in (unknown source location)\n\nSCRIPT7: Out of memory
It appears to have a recursive looping problem after 2 or 3 tabs are redirected to logout.
Anyone know why, or any way to fix this ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/40, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAa7jqQ6A4Kok2gNuId4M3gj1zfYmxhFks5qqE2ogaJpZM4J9KNq.
from jquery-idletimeout.
Thanks, could not get the multiple tabs to function in those versions.
from jquery-idletimeout.
Yeah, you are quite correct. It appears that the users choice to stay logged in doesn't work across tabs. Sorry, I only just incorporated this plus version in a new project and haven't as yet given it the full suite of tests. It looked good off the shelf, however I forgot to test the multi tab instances. My bad. Perhaps it's a quick fix for the developers.
Regards,
Richard Hetherington
Senior Web Developer
Aztec Retail Solutions
c/o John Smith & Son Group Ltd
Dragon House
Headlands Business Park
Ringwood,
Hampshire
BH24 3PB
Tel: +44 (0)1425 485957 ext. 315
Fax: +44 (0)1425 489857
Richard
From: blizznet [mailto:[email protected]]
Sent: 15 September 2016 14:05
To: JillElaine/jquery-idleTimeout
Cc: Richard Hetherington; Comment
Subject: Re: [JillElaine/jquery-idleTimeout] IE recursive loop crash. (#40)
Thanks, could not get the multiple tabs to function in those versions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/40#issuecomment-247322274, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAa7jp9qvSPWeCpQNhsj10_v4cjf9WJOks5qqUKKgaJpZM4J9KNq.
from jquery-idletimeout.
Several users have reported problems with Internet Explorer & asp apps, and users have also reported problems with 'redirect' firing multiple times, which may be related. Please look at Issues #21, #26 & #38. I apologize that I do not have time to work on my script right now. Please report back if you find a fix.
from jquery-idletimeout.
Hello again, after reviewing all of the jquery-idleTimeout-plus configuration, I discovered that multiWindowSupport config param needs set in your initialisation for the plugin. It is not enabled by default for some odd reason. In order for this to work you also need to include the storage API script on your pages also.
Here's my setup. Paths to scripts will vary. I have removed all version numbers to simplify example.
<script src="/js/jquery.min.js" type="text/javascript"></script> <script src="/js/theme-dashboard/toolkit.min.js" type="text/javascript"></script> <script src="/js/jquery-idleTimeout-plus-iframe.min.js" type="text/javascript"></script> <script src="/js/jquery.storageapi.min.js" type="text/javascript"></script> <script src="/js/jquery.blockUI.min.js" type="text/javascript"></script>$(document).ready(function() {
// https://www.npmjs.com/package/jquery-idleTimeout-plus
// https://github.com/LinearSoft/jquery-idleTimeout-plus
IdleTimeoutPlus.start({
idleTimeLimit: 60 * 30, // 'No activity' time limit - NOW in SECONDS. 1800 = 30 Minutes
warnTimeLimit: 60, // Length of time to display warning
multiWindowSupport: true,
bootstrap: true, // works with JQuery UI OR Bootstrap
redirectUrl: my-account/logout?action=AutoLogOut", // redirect to this url if timeout exceeded in warning dialog
logoutUrl: "my-account/logout", // If user clicks logout in warning dialog
warnTitle: "WARNING",
warnMessage: "You are about to be signed out due to inactivity."
});
});
This now works perfectly for me across multiple tabs/windows and inside iframes of the same origin.
Hope this helps.
Regards,
Richard Hetherington
Senior Web Developer
Aztec Retail Solutions
c/o John Smith & Son Group Ltd
Dragon House
Headlands Business Park
Ringwood,
Hampshire
BH24 3PB
Tel: +44 (0)1425 485957 ext. 315
Fax: +44 (0)1425 489857
From: blizznet [mailto:[email protected]]
Sent: 15 September 2016 14:05
To: JillElaine/jquery-idleTimeout
Cc: Richard Hetherington; Comment
Subject: Re: [JillElaine/jquery-idleTimeout] IE recursive loop crash. (#40)
Thanks, could not get the multiple tabs to function in those versions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/40#issuecomment-247322274, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAa7jp9qvSPWeCpQNhsj10_v4cjf9WJOks5qqUKKgaJpZM4J9KNq.
from jquery-idletimeout.
Thanks. I just came up with a workaround solution for IE with the JillElaine version, and store.js
We have application that opens up multi tabs via java script, I was able to avoid the looping issue by simply
closing the tabs that the main page creates, on the time out, then logging out, the last open Tab from that session(domain) .
This way I only have one window to “Log out” of and the script works ok , in fact the way it was, it would handle up to 3
total tabs open in IE 11 – Win 7 64, many more in other browsers. Not tested in Edge or Win 10 at all.
One of the problems is this app is DevExpress heavy.. and the way DevEx MVC extensions handle JavaScript causes issues.
Especially in IE.
Thanks for the follow up, much appreciated.
From: Richard Hetherington [mailto:[email protected]]
Sent: Friday, September 16, 2016 5:46 AM
To: JillElaine/jquery-idleTimeout
Cc: blizznet; State change
Subject: Re: [JillElaine/jquery-idleTimeout] IE recursive loop crash. (#40)
Hello again, after reviewing all of the jquery-idleTimeout-plus configuration, I discovered that multiWindowSupport config param needs set in your initialisation for the plugin. It is not enabled by default for some odd reason. In order for this to work you also need to include the storage API script on your pages also.
Here's my setup. Paths to scripts will vary. I have removed all version numbers to simplify example.
<script src="/js/jquery.min.js" type="text/javascript"></script> <script src="/js/theme-dashboard/toolkit.min.js" type="text/javascript"></script> <script src="/js/jquery-idleTimeout-plus-iframe.min.js" type="text/javascript"></script> <script src="/js/jquery.storageapi.min.js" type="text/javascript"></script> <script src="/js/jquery.blockUI.min.js" type="text/javascript"></script>$(document).ready(function() {
// https://www.npmjs.com/package/jquery-idleTimeout-plus
// https://github.com/LinearSoft/jquery-idleTimeout-plus
IdleTimeoutPlus.start({
idleTimeLimit: 60 * 30, // 'No activity' time limit - NOW in SECONDS. 1800 = 30 Minutes
warnTimeLimit: 60, // Length of time to display warning
multiWindowSupport: true,
bootstrap: true, // works with JQuery UI OR Bootstrap
redirectUrl: my-account/logout?action=AutoLogOut", // redirect to this url if timeout exceeded in warning dialog
logoutUrl: "my-account/logout", // If user clicks logout in warning dialog
warnTitle: "WARNING",
warnMessage: "You are about to be signed out due to inactivity."
});
});
This now works perfectly for me across multiple tabs/windows and inside iframes of the same origin.
Hope this helps.
Regards,
Richard Hetherington
Senior Web Developer
Aztec Retail Solutions
c/o John Smith & Son Group Ltd
Dragon House
Headlands Business Park
Ringwood,
Hampshire
BH24 3PB
Tel: +44 (0)1425 485957 ext. 315
Fax: +44 (0)1425 489857
From: blizznet [mailto:[email protected]]
Sent: 15 September 2016 14:05
To: JillElaine/jquery-idleTimeout
Cc: Richard Hetherington; Comment
Subject: Re: [JillElaine/jquery-idleTimeout] IE recursive loop crash. (#40)
Thanks, could not get the multiple tabs to function in those versions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/40#issuecomment-247322274, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAa7jp9qvSPWeCpQNhsj10_v4cjf9WJOks5qqUKKgaJpZM4J9KNq.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view #40 (comment) it on GitHub, or mute https://github.com/notifications/unsubscribe-auth/AHAPQalGRsggGF4dGPuPdkl9GiIx2NU7ks5qqnN_gaJpZM4J9KNq the thread. https://github.com/notifications/beacon/AHAPQWadrj-cC7pqFt-TGHU3lQ2mSsmtks5qqnN_gaJpZM4J9KNq.gif
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7797 / Virus Database: 4656/13029 - Release Date: 09/16/16
from jquery-idletimeout.
I could not get the multiple tabs to work in Edge or IE 10. I tried jquery-idleTimeout-plus and was still seeing the same issue. My resolution was to install localForage, which uses an indexedDB instead of local storage and replace the calls using store.js with localForage.js
from jquery-idletimeout.
Related Issues (20)
- Is there a way to change the timeout duration at runtime? HOT 5
- Dependency on jQuery UI for pop up. HOT 1
- Session time out counter show NAN HOT 15
- iframe inactivity detection bug HOT 2
- Accessing the $.fn.idleTimeout() after it was initialized HOT 1
- customCallback repeating call if redirectUrl: false HOT 2
- Does not function if the page is having frameset HOT 2
- Cannot find any error handling callback HOT 2
- Session lost when there is a pending AJAX request HOT 7
- Unable to change dialogue on buttons, HOT 19
- Configuration issue - activityEvents override without mousemove HOT 7
- Error message only on IE 11 on Windows 2012 R2 - Solved HOT 12
- Releasing jquery-idleTimeout under MIT license HOT 7
- Logged out of iframes, not main page HOT 4
- IE 11 Tabs or windows not communicating when over 2 tabs. HOT 2
- IE-11 windows 10 multiple logout calls HOT 1
- How much of jquery-ui do you need to bundle? HOT 3
- Uncaught TypeError: $(...).idleTimeout is not a function HOT 1
- store.js HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-idletimeout.