Joomla execute script when timeout?

Posted by Romain on Stack Overflow See other posts from Stack Overflow or by Romain
Published on 2012-11-15T15:43:50Z Indexed on 2012/11/15 17:00 UTC
Read the original article Hit count: 261

Filed under:
|
|
|

My question may be a noob one but:

I want to execute a php script when a user timeout. The only way I found to do so is to make the server execute a script every second or minute for instance, get the last activity of every user and execute a script when the last activity is older than (now() - timeout).

is this the appropriate solution? Is this will slow the website significantly?

Many thanks in advance!

© Stack Overflow or respective owner

Related posts about php

Related posts about script