add extra optional param to override the cookie