Using cookies for a two component query module