PEAR Net_Socket connection across pages
| From: | Chris Burns | Date: | Mon, 02 Aug 2004 18:27:31 +0000 |
| Subject: | PEAR Net_Socket connection across pages | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13942@lists.php.net to get a copy of this message | ||
Hello,
I am trying to write a script that connects to a server and keeps a socket object in a session. The socket should remain open on all pages visited until the user hits 'Close Connection'. However, using the Net_Socket class it appears that as soon as the user logs in, and then is redirected to another page, the socket closes as soon as the login page is closed.
How can i preserve the socket connection across multiple pages so users do not have to log in every time they visit a new page.
Thanks,
Chris