Keep socket and session up to date on connect