in reply to Re: Re: shield from content statement
in thread Problems setting a cookie

The HTTP-Header must be the _very first_ thing your script sends to STDOUT:

#somewhere in the beginning of your program # nothing has been sent to STDOUT yet print $cgi->header( -cookie => $your_cookie, -type => 'text/html' );
--
http://fruiture.de

Replies are listed 'Best First'.
Re: Re^3: shield from content statement
by wolverina (Beadle) on Nov 18, 2002 at 00:27 UTC
    Yes.. for some strange reason the cookie makes the script act abnormal if i put the cookie before the http header. I was thinking of using a javascript cookie instead.. -Lisa.