in reply to Re: Re: Cookies created via CGI.pm and CGI::Cookie incorrectly made
in thread Cookies created via CGI.pm and CGI::Cookie incorrectly made

Putting the cookie after the header was a means for me to see what the actual Set-cookie: header would look like, since I don't have shell access to this server.

In that case, change   print $cookie; to   print $cookie->as_string();

Replies are listed 'Best First'.
Re: Re: Re: Re: Cookies created via CGI.pm and CGI::Cookie incorrectly made
by skazat (Chaplain) on Mar 18, 2003 at 16:23 UTC

    Hmm, I failed to see that, but it still doesn't make much difference. the as_string() method doesn't seem to be even in the public interface of CGI.pm, I see it in the docs of CGI::Cookie, but it doesn't change anything outputted.

     

    -justin simoni
    !skazat!

      You are calling the as_string() method. Your "print" triggers the overload for stringification in CGI::Cookie.