No, it is not possible to pull the user id from the session on the client side, because HTTP security prevents that to stop session hijacking.
I tried storing the user id in a different cookie, but I still had trouble accessing it via JavaScript. You have to make sure the Cookie is not "HttpOnly" or "Secure". But don't do that to your session cookie, or you are putting your users in jeopardy of being session-jacked.
If that doesn't work, try to pass the user id back to the C2 client, you need to pass it back by a HTTP(/AJAX) GET request.
EDIT:
I forgot about direct JavaScript injection. Which is what we use. I forget where I found this method, but it was some obscure website.
For our game, I pass session parameters to the C2 client by direct JavaScript injection using this method: