More robust new-session detection