able to retrieve cookie from socket connection