rmlopes 0 Light Poster

Hello

I have a web application developed with php, using the Zend Framework. This application has a page that launches an external, C++, application.
I was trying to do this using proc_open to start the job in background mode, save the handler to keep track of the process that will take at least half an hour running, and this way, I would be able to track the opened processes and kill them at my will before they actually finish executing.
This approach has a serious flaw, which is: you cannot serialize a resource type, at least not with serialize(). My question is: how can I save and restore this process handlers? (any suggestion of a better way to do this is welcome)

Thank you,
Rui