modify mongo adapter in session config