I haven't tried this myself, but I have heard about using UV resistant spray acrylic to coat cookies. Ali Bee mentions it in a blog post: http://snargblog.blogspot.com/...rable-christmas.html
I have found that cookies last a very long time if they are kept dry, away from humidity, and out of direct sunlight.
I'm interested to hear what other people have used to perserve cookies!