shanu_040 Posted August 9, 2007 Share Posted August 9, 2007 I want to know that how can php script detect that a client is idle for few minutes(meens keyboard and mouse is not in use) Quote Link to comment https://forums.phpfreaks.com/topic/64062-how-to-detect-that-a-systemclient-is-idle-in-php/ Share on other sites More sharing options...
wildteen88 Posted August 9, 2007 Share Posted August 9, 2007 not possible. You'll have to use some kind of client language for that, such as javascript. PHP runs on the server. PHP does not listen out for client commands/events. This is what javascript is for. Quote Link to comment https://forums.phpfreaks.com/topic/64062-how-to-detect-that-a-systemclient-is-idle-in-php/#findComment-319283 Share on other sites More sharing options...
shanu_040 Posted August 10, 2007 Author Share Posted August 10, 2007 Do you have some idea how javascript does that Quote Link to comment https://forums.phpfreaks.com/topic/64062-how-to-detect-that-a-systemclient-is-idle-in-php/#findComment-320083 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 Why not just store the last time some action was taken by the client on your website (accessed a page). At the point they try to access the page again if it's more than the given amount of time force them to login or something. The other alternative is of course javascript, though I'd suggest against it if you can get away with it. Can you describe what it is exactly you're trying to accomplish... what problem rather than asking for a solution to this? It may be such a thing that there are other alternatives that you didn't think of. Quote Link to comment https://forums.phpfreaks.com/topic/64062-how-to-detect-that-a-systemclient-is-idle-in-php/#findComment-320091 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.