try to set sessionmodified flag if the client document was actually modified.