detect whether header output for session test