Questions tagged [idle-timer]
115 questions
0
votes
1 answer
idleTimer will not work, timer never starts "has no method on" when inspected
I am using MVC3, Jquery 1.4.4, and idle-timer plugin.
idleTimer will not work, timer never starts "has no method on" when inspected
$(document).ready(function () {
//Deals with Idle session
var timeout = 5000;
…

afreeland
- 3,889
- 3
- 31
- 42
0
votes
0 answers
idle time detection using python gives incorrect output when computer runs for more than a month
I needed a python script for detecting idle time in seconds. This script would run for every 15 minutes in Task scheduler as long as the system is logged on. I found the below mentioned script to be very useful.
detecting idle time using…

Nambirajan M
- 9
- 2
0
votes
1 answer
Setting idletimeout in Go
I have a function in go which is handling connections which are coming through tcp and handled via ssh. I am trying to set an idle timeout by creating struct in the connection function.
Use case - a customer should be able to make a connection and…

Sanjay Kumar
- 27
- 10
0
votes
0 answers
how to get window idle time
I am new in vb.net WPF coding, need advice how to get idle time on window to prevent dispatcher timer if user is using app?
dispatcher should execute only if window idle time is greater then 1 minute
Public Sub dispatcherTimer_Tick(ByVal sender As…
0
votes
1 answer
iOS: Can't set UIApplication idleTimerDisabled to YES in didFinishLaunchingWithOptions
I have an iPad app where the user can set the idleTimerDisabled to YES or NO via a switch in preferences. That part works fine. However, initially setting it to YES in the app delegate's didFinishLaunchingWithOptions method if it's the first time…

Gregir
- 1,574
- 5
- 21
- 43
0
votes
3 answers
How to use the new IdleTimer from 'react-idle-timer' in a functional component
The IdleTimer was rewritten from scratch in v5, and the usage changed completely. They do have an example of how use it "the old way", but it's written for class based components. I need help translating that to a functional component.
This is their…

user7385060
- 23
- 1
- 3
0
votes
3 answers
Error when importing IdleTimer from 'react-idle-timer'
I am developing a React app with NodeJS. I am currently working on being able to log out a user after some minutes of inactivity, and I'm following this tutorial: https://www.youtube.com/watch?v=_wgCPufTAYI. I didn't get too far, because I get this…

Victor
- 15
- 1
- 6
0
votes
1 answer
How to call a function before the idle timeout session expiry in PHP
I have a large application which expires the session data after 30 minutes of idle time. Now I want to call a function before the session expiration.
My Reason for above question: I am storing a unique id in database for some purpose. When the user…

kowshiga
- 11
- 1
- 4
0
votes
1 answer
Typescript Idle Timer with UseRef
On the verge of giving up on Typescript, everything just seems to be made harder. Trying to follow a simple react-idle-timer video and a few minutes in already facing Typescript compilation problems. Searching online for guides on how to use useRef…

TrollBearPig
- 496
- 1
- 7
- 17
0
votes
0 answers
Crash in UIApplication.isIdleTimerDisabled
I have a published app that has a need to keep the display on for an extended period of time. I use UIApplication.isIdleTimerDisabled to control it, setting it true when I need to keep the display on, and setting it false when it's no longer…

Jerry Agin
- 629
- 1
- 5
- 15
0
votes
1 answer
IdleTimerDisabled not working in Xamarin Forms IOS
The app I am working on needs to able to keep device awake while the app is the foreground and a particular application user setting is enabled. The below line works fine, however there seems to be no way to turn the idle timer back on. Resetting it…

JamesinGreerSC
- 35
- 1
- 5
0
votes
0 answers
How to prevent CreateProcess/ShellExecute from resetting Windows idle timer?
I need to launch an app from my app. I tried to use CreateProcess and ShellExecute but they both reset windows idle timer (which is used for monitor and system sleep). Is it possible to prevent this behavior?
Thanks for your help.

andron
- 307
- 1
- 11
0
votes
1 answer
Rails 3: jquery.idletimeout plugin's remote requests are failing
I'm using the jquery.idletimeout plugin with the following in my application.js:
jQuery.idleTimeout('#session_timeout', '#session_timeout a', {
idleAfter: 600,
pollingInterval: 15,
keepAliveURL: '/session',
serverResponseEquals: 'OK',
//…

robertwbradford
- 6,181
- 9
- 36
- 61
0
votes
1 answer
Re-enable the idle timer prior to app crashing out or user hitting the main exit button?
I am writing an app that disables the idle timer. How do I re-enable it prior to app crashing out or user hitting the main exit button? This could be real bad by draining the battery otherwise.

jdl
- 6,151
- 19
- 83
- 132
0
votes
0 answers
How to set a timer in Windows application when user is idle or not active using Static Class
I have a question on setting timer in Windows Forms when the user is idle or Inactive using Static Class and call static method. Since static will be there for the lifetime period of the exe file. I need the timer to set even on any Mouse Events. If…

Sandeep
- 105
- 1
- 1
- 14