Added cookie setter function