Support for sessions in mongodb