Though, now that I think about it, set_cookie() should be a method of the http_reply object imho. I may fix this some day.