Echo query string settings into a cookie or cookies into json