Handle the case where an expired session is detected during an Ajax call