Set session property in publish algorithm. Refs #9084.