At 08.43 21/11/00, you wrote:
>Does PHP have the problem of setting a cookie after a redirect? I was
>listening in to the PHP-General list and someone said they had trouble
>setting a cookie, when they displayed their code it was right before a
>redirect. I mentioned that it might be the problem and they said PHP is
>smart enough to know to pass that information along.
>Is that true?
Yes, you don't have any problems to set a cookie after a redirect. The only
think you have to pay attention is that you can't set a cookie or make a
redirect (header("Location:/test/test.index.php");) if before you sent to
the browser any output (html, php or a single space too).
http://www.php.net/manual/function.header.php
Ciao.
FaSer
*******************************************************
FABIO SERRA - [EMAIL PROTECTED]
PGP and ICQ available
********************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists