Update decode cookie so that it extracts the cookie from the whole cookie string