generate cookie from header string works