I have to have a persistent connection open across multiple page demands. You can't put PHP assets in to the session.

My option would be to trigger a deamon around the first request and the PHP resource there. Then i want to get the deamon to speak to my different page demands. I possibly could do that the lengthy way using a database or file but I'm wondering basically could in some way share the session...

Is possible, and when so... how??

For those who have a much better means to fix maintain persistent connections or if this sounds like an especially rubbish idea... please tell me.

Shared periods is really a non-starter. Uses a queuing mechanism or MySQL to speak to my deamon.

You can't put PHP assets in to the session.

You actually can. Serialize the item or variable after which place it right into a session.

http://php.net/manual/en/function.serialize.php