I believe this is the correct fix for a serious bug in
the profile calculations. When authentication is used,
AccessSection::setup can be called _after_
update_profiles, which nullifies the effect of
update_profiles. This patch _separates_ the caching of
the access_profile and the reseting of the connection
profile, which seems to be the intent anyway.