in reply to CGI::Application, cookies, and redirects

From my reading of the doco, this is the way it should work. Have a look at the section "IMPORTANT NOTE REGARDING HTTP HEADERS." In their example, they set the type and props, just as you have in your example that works
  • Comment on Re: CGI::Application, cookies, and redirects