update session write