Hash the session id when using it as a state