sockets and sessions

Check out the The Ruby Way book, it has good coverage on networking.