Wire up ping interval setting, fix clear data on new session bug