Added support for sessions on the server.