in reply to Re: Cookie Failure
in thread Cookie Failure

Once again, the docs say it defaults to text/html, which it does, and adding ...-type=>'text/html'... or ...'-type'=>'text/html'... (which I did try, just in case) makes no difference, the printed output still appears, but no cookie! This is driving me insane!

Replies are listed 'Best First'.
RE: RE: Re: Cookie Failure
by agoth (Chaplain) on Aug 03, 2000 at 12:50 UTC

    Your code on my machine is correctly setting both test and test2 cookies, viewed with Mozilla. How are you determining whether the cookie is there or not?

    Im not being patronising by hoping youre not expecting to see your cookies in the browser window are you?

    Therefore if youre code is fine, check the cookie validation youre using, browser settings etc?

     

      I got the same response from a few people in comp.lang.perl.misc, and putting print $co->header(); before the real header enables you to see what's actually being sent to the client.

      I was using IE, and for some reason it chooses not to have anything to do with any cookies with an expiration of shorter than 2 hours. Go figure. So anyway, my code above works fine if you set -expires=>'+2h'... under IE, and apparently it all works fine under NS anyway. Damn microsoft, causing me another days hassle.

      Anyway, a big blessing to all you monks who tried to help out, but at least we can say it's not our fault, it was Bill.