Re: [PHP-DEV] Cookies problem From: Dominic J. Eidson (sauron <email protected>)
Date: 01/14/00

On Fri, 14 Jan 2000, Mukul Gandhi wrote:

> In a PHP script, I want to set the cookies on the client *and* also
> redirect control to another page say "www.php.net". To achieve this I am
> writing the code -
> header("Location: http://www.php.net");
> setcookie("LOG",$logname);
> setcookie("PASS",$passwd);

SetCookie( .... );
SetCookie( .... );
Header("Location: http://www.php.net/");

There is an addendum to the setcookie help file about having setcookie()
before the Location: - redirect.

-- 
Dominic J. Eidson
                                         "Baruk Khazad! Khazad ai-menu!" - Gimli
--------------------------------------------------------------------------------
http://www.the-infinite.org/               http://www.the-infinite.org/~dominic/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>