If you did not boil the butter, sugar and milk long enough at a high enough temperature, your cookies will not set. Make sure to bring the mixture to a rolling bowl before counting to 60 seconds.