-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to resume timer on ajax requests #23
Comments
@wmtoscar I'm sure it could have been done in an easier way instead of how I did it but for the life of me I couldn't figure out how to expose another 'resume' method to be called externally in the object literal way the code has been rewritten originally. If you want/still need, I'll post the code here. Nevermind - I just forked and uploaded it. I'm sure you can find it on my profile. |
yeah I need that. |
@wmtoscar Here's a link to the repo with my changes: I just happened to look at other forks though and saw that someone else has already done this by just exposing the resume method in a way that I'm sure I tried (but I guess not :( ). Maybe that one would work better for you since there are fewer changes to the original library so reducing the chance for new bugs being created: |
hello, I have implemented this plugin and it is working like but when I am requesting via ajax the timer is not resuming and continue to countdown the seconds because of idle session
I have further looked into stack overflow and tried couple of things as suggested but that too didn't worked for me.
1st I have tried the answer which I got here
https://stackoverflow.com/questions/35143230/jquery-ajax-aborted-in-laravel-5-2-using-jquery-idle-timeout
ie., either commenting out the ajax timeout or call it on ajax success but there I got timer appended into existing timer instead of resuming the exisitng timer and thus logging out after the completion of 1st timer.
https://stackoverflow.com/questions/31888343/reset-idletimeout-counter-between-ajax-post
2nd I tried to call it on ajaxSuccess function but that too gave me the same above mentioned problem
Now, I would be thankful If you help me out to solve this issue I want to resume the timer like it is resuming on click or reload of the page after every ajax call.
The text was updated successfully, but these errors were encountered: