Make session id rw

Fix #460 ?