How to salvage an already rock-hard cookie or prevent soft cookies from hardening:

Put a slice or two of bread into the container with the cookies. The cookies closest to the bread will become the softest. Replace the bread if it becomes stale. This is a great use for heels of bread if you don't like to eat them. You can make cement-like cookies fall-apart soft with a couple bread heels and a few hours time.