Add session id check with message inspection.