Persist session on any change