You are here: socket and session « PHP Programming Language « IT news, forums, messages
socket and session

Posted by fufik on 09/26/05 15:29

Hi,

I'm trying to connect to an application server using sockets.
Everything is fine with a small exception. I would like to store socket
in session, so that I wouldn't have to reconnect at every request.

I open socket using (PHP5): stream_socket_client.
Then I try to: $_SESSION["socket"] = $newSocket.

With every new request the $_SESSION["socket"] is 0.

Anyone got any idea how to solve it?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация