Questions related to the detecting or handling of inactivity events by the user.
Questions tagged [user-inactivity]
83 questions
118
votes
18 answers
How to detect user inactivity in Android
User start my app and logs in.
Selects Session Timeout to be 5 mins.
Does some operations on the app. (all in foreground)
Now User bring Myapp to background and starts some other app.
----> Count down timer starts and logs out user after 5 mins
OR…

Akh
- 5,961
- 14
- 53
- 82
33
votes
4 answers
How to detect inactive user
How to detect inactive (idle) user in Windows application? I'd like to shutdown application when there hasn't been any input (keyboard, mouse) from user for certain period of time.

Harriv
- 6,029
- 6
- 44
- 76
13
votes
4 answers
Redirect user after 60 seconds of idling/inactivity?
How can I use JavaScript on my site to redirect the user to a /logout page after 60 seconds of inactivity?
I know setting a timer or using a meta refresh tag is straightforward: but I only want to redirect inactive users, not disrupt someone's…

simon
- 5,987
- 13
- 31
- 28
10
votes
1 answer
Android: Detect user inactivity / Detect (softkeyboard) keyboard input
I want to detect "user inactivity" in my Android app. To be more precise: I want to detect if the user has NOT done any interaction with my app (touching the screen, scrolling, input texts ...) for a specific time. Technically I use a timer that is…

janjonas
- 2,563
- 2
- 22
- 26
9
votes
3 answers
application compiles every 15 minutes
I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the…

user266909
- 1,841
- 3
- 32
- 58
9
votes
2 answers
How to determine app is in active state or inactive state ios?
I need to know when an App is in Foreground, it is in active state or inactive state ?
If my App is in inactive state I need to fire the Logout Protocol and destroy the current user's session,
- (void)applicationWillResignActive:(UIApplication…

Nasir
- 1,617
- 2
- 19
- 34
9
votes
2 answers
VB Detect Idle time
I'm looking for a way to detect if the user has been idle for 5 min then do something, and if and when he comes back that thing will stop, for example a timer.
This is what i have tried (but this will only detect if form1 has been inactive / not…

Johannes Falk
- 91
- 1
- 1
- 5
8
votes
3 answers
How to detect user inactivity in Qt?
How can I detect user inactivity in a Qt QMainWindow? My idea so far is to have a QTimer that increments a counter, which, if a certain value is passed, locks the application. Any mouse or key interaction should set the timer back to 0. However I…

Jake Petroules
- 23,472
- 35
- 144
- 225
6
votes
1 answer
Colab audio alarm or pop up notification to remind the user to click captcha button when popped up, prevent inactivity
From March 2021 google colab has added a captcha that randomly pops up after some time. So it is difficult or not possible to programmatically prevent Google Colab from disconnecting on a timeout. So there's no option other than opening the tab and…

Senthil Vikram Vodapalli
- 526
- 7
- 14
6
votes
1 answer
Prevent xautolock/i3lock when watching fullscreen video
I use the i3 window manager and have
set $Locker i3lock --color=000000 && sleep 1
exec --no-startup-id xautolock -time 5 -locker "$Locker"
in its config file, so that it locks after 5 minutes.
The problem is that the 5 minutes timer counts down…

Enlico
- 23,259
- 6
- 48
- 102
6
votes
10 answers
User Inactivity Logout PHP
I want my users to be logged out automatically after X minutes of inactivity. I also want to have all sessions destroyed.
How can this be done? How can I check for inactivity then perform a function to log them out???

user342391
- 7,569
- 23
- 66
- 88
6
votes
1 answer
What is the best way to detect user inactivity in a Silverlight app?
Does anyone know of an efficient way to detect user inactivity in a Silverlight App. The idea is that everytime a user interacts with the app in any way a timer would reload. When it expires, a "continue working.." dialog would be displays for a…

caryden
- 7,738
- 3
- 30
- 31
6
votes
4 answers
Find out UITextfield's end editing without resigning first responder
When user is typing in UITextfield, and he stops for 2 seconds, the cursor is still on UITextfield, so how we can identify this event? i.e. I want to check the whether the editing is end or not without resigning the first responser from that…

prabhu
- 684
- 11
- 27
5
votes
0 answers
SveltKit app on Netlify breaks after inactivity
I'm facing an issue with my SvelteKit app deployed on Netlify that if I load the app and then leave the page inactive for several minutes, at some point it breaks, if I try to navigate or do stuff it gets stuck, and it seems like is not able to get…

Gum Rick
- 205
- 2
- 13
5
votes
1 answer
How to detect user inactivity in OS X writing in Swift Cocoa?
I have searched answers in stackoverflow and none of them matches my needs. I am creating time tracking app on Swift Cocoa macOS, like Hubstaff time tracking app. At the moment runs a timer and I want to detect user's inactivity after x period of…

Alexandru Vorojbit
- 73
- 5