Mmm... rotten cookies...
Things with a very high sugar content keep pretty well when in the fridge...like jam and stuff. The sugar might well have kept it from going south.