Explicitly mark the session as modified on write operations

Fix #194

Signed-off-by: Byron Ruth <b@devel.io>