Yes, so those are sessions to identify "chat sessions", not user sessions. Php built in session was designed in order to identify a single client/browser. For what you want to do it seems to me that you would have to use ajax and call a php function that would generate your own random session for that chat etc, you can always use $_SESSIONS to store the individual chat sessions and so on.