A user logs into the site, and a session key is stored inside a cookie.

I need to access that cookie from Construct 2 so I can authenticate with my Websocket server. Is there anyway of accessing that cookie (bearing in mind that the C2 game is just a web page inside a rails s