Fix authentication ticket persistence issues