parse cookies if they haven't already been parsed