getting cookies, retrieving data