Hi Everyone,
I have a similar question to this: http://stackoverflow.com/questions/1287064/php-session-timeout-callback
Basically, I want to run some code once a user has been inactive for a certain amount of time. However my case is a little more tricky than the above question. This is because I am using Ajaxterm: http://antony.lesuisse.org/software/ajaxterm/
My php script will handle authentication, and if logged in, will start an ajaxterm daemon. Ajaxterm starts its own little web server, which my php script will "proxy" its output to the user.
What I wish to do is if the user has not pressed a key for a certain amount of time in ajaxterm, to kill the process.
Has anyone got any ideas on how I could do this?
BTW: I could scrap php if there is a better language to do the above in
Thanks