Parse a cookie for use in PhantomJS