title: Server authentication via PHP session
body: <p>I have a little question about possibilities to change authentication on my C# server from Login\Password to PHP session. I am using PHP, HTML5, and JavaScript as client side, and C# server with WebSockets lib as server side. I already have authorization code, but it works only with login and password.</p>
  
  <p>Well, I have the same authentication code, that checks login &amp; password via PHP. But how I can authorize client on C# server, by using WebSockets with PHP session, instead account login &amp; password?</p>
  
  <p>Little pic:
  <kbd><a href="https://i.stack.imgur.com/RPCdw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RPCdw.jpg" alt=""></a></kbd></p>
  
  <p>Is this possible? And any piece of code, demo, etc. for it?</p>