Reset sessionWritten flag to allow multiple session read/write cycles.