The best way to prevent the cookies from becoming soggy is to make sure the juices in the pie filling are thick and caramelized. If the filling is too runny, it is more likely to seep out of the cookies and make the bottom crust soggy. Additionally, make sure to keep the cookie filling no more than 1 tablespoon. If the cookies are over-filled, they are more likely to become soggy.