> --- Joaco <[EMAIL PROTECTED]> wrote:
> > I set a cookie in my code and then redirect the user using a
> > header function. When I do this, my cookie is not created. If i
> > remove the header function, then it is. Is there a way around
> > this?
> If you are using IIS, read this:
> http://marc.theaimsgroup.com/?l=php-general&m=102929828515647&w=2
> If you are not, please post your code, because it should work fine.

You can't use any functions that send headers to the browser (and
that includes setcookie()) before you use:

header( 'location: http://blah' );

The browser will choke.

Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to