Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can I show number of connected members to php server socket in Windows form label C#

What I have tried:

how can I show number of connected members to php server socket in Windows form label C#
Posted
Updated 11-Jan-20 2:48am
v2
Comments
Richard MacCutchan 11-Jan-20 4:29am    
Probably by keeping a count of the connections.

1 solution

1. In your PHP code, add in a method which will return the count of sessions (link below)
2. Add an API or page in PHP to return the value from step 1.
3. In your Windows form, add a method to call #2.
4. Populate label with contents from #3

This may help you with the PHP Session Count:
php - Can I count sessions to determine number of people online? - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900