how to share and manage session in socket
HI,
I am new to socket programming. I have developed a portal using MySQL and PHP. Now I want to show online status of friends/users and also chat in case he/she is online. Also I will have to use session data in socket as well as I have destroy the session on user disconnect/browser close.

How can I do this, please help me


Thanks,
Sunil