socket: Keep track of open sessions