Jump to content

How to detect that a system(client) is idle in PHP


shanu_040

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.