If using a 'wet' filling, this will soften the cookie over time. You can create a chocolate 'shell' though, to minimize this. Use dark, milk, or white chocolate to melt and paint inside the cookie. It also helps to fill them just before serving.