If your cornflake cookies hardened after they cooled and weren't soft and chewy, it's likely that you boiled the sugar and corn syrup mixture too long. The same thing can happen when making scotcheroos, which have a similar base to these cookies. You need to remove the saucepan from the heat as soon as the mixture comes to a boil.