def persist(self, context):
		"""Update or insert the session document into the configured collection"""
		
		D = self._Document
		document = context.session[self.name]
		
		D.get_collection().replace_one(D.id == document.id, document, True)