Your phone doesn't need to stay online but your linked devices will be logged out if you don’t use your phone for over 14 days.