Maanu
Maanu

Reputation: 5203

Log off application if the user is not active

We have a requirement that if the user does not perform any operation with mouse or keyboard on the application for a specific time period, the active user needs to be logged of from the application. The application has more than 40 screens

Is there any built in functionality .net support for handling this type of requirement? What is the best way for handling the requirement?

Upvotes: 0

Views: 179

Answers (1)

Habib
Habib

Reputation: 223372

You may use GetLastInputInfo using PInvoke. Also you may see the article How to check for user inactivity with and without platform invokes in C#

Upvotes: 2

Related Questions