session state behavior