storing cookie reference