php - Timeout with Ajaxterm -


I have a similar question for this:

Actually, I will run a few code once user Has been disabled for some time though my case is slightly more difficult than the above question. The reason for this is that I am using AjaxTrum:

My PHP script will handle authentication, and if logged in, then the AJAX Formam daemon will be started. Ajaxterm starts its own small web server, which will give its PHP script "proxy" its output to the user.

What do I have to do if the user has not pressed the key for some time AjaxTrum, to kill the process.

Has anyone got any idea about how I can do this?

BTW: I could scroll up

thanks

< P> The question you posted is not just like you, it is very same, I think you are asking how to do the cleaning work, in which Ajax can be killed.

The way I describe here works for Linux, but with a little effort portable. To identify and kill a process you will need to know the process ID. You can get it by starting ajaxterm within a Bash script, resonating PID and reading it with PHP. Whether to use AJAXTerm -PPIDFILE, --pidfile = PIDFILE command line option is easy to set each ajaxterm example to a different pidfile. Then you need to read this file with your language of choice and need to execute the kill command.


Comments