session end check