How to pass data securely?
Hello, I need some help. I want to achieve, that a user creates a socket connection and the ws-server knows its user-id. Then the ws-server subscribes the "user" to all channels he has access to (all his groups and friends). I want to avoid, that the user sends all the ids over js to ws-server while connecting. This data can be manipulated. So my architecure looks like this now:

Client(https) -> HAProxy -> php | ratchtet | redis (for storing session data)

I know that redis can't read php session data. I'm using cakephp. What are my options to let the ws-server securly know some user-identifing-data. All data sent via js can be manipulated, can't be?

Thanks in adavce!
