Adding MongoDB session support.