Add cookie supporting and a demo handler。