Date: 01/14/00
- Next message: Martin.HEIN <email protected>: "[PHP-DEV] Bug #3215: When running 'make check' after building a cgi, regex fail with core dump"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] php4 - removing outdated session files"
- In reply to: Mukul Gandhi: "[PHP-DEV] Cookies problem"
- Next in thread: Mukul Gandhi: "Re: [PHP-DEV] Cookies problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Martin.HEIN <email protected>: "[PHP-DEV] Bug #3215: When running 'make check' after building a cgi, regex fail with core dump"
- Previous message: Andrei Zmievski: "Re: [PHP-DEV] php4 - removing outdated session files"
- In reply to: Mukul Gandhi: "[PHP-DEV] Cookies problem"
- Next in thread: Mukul Gandhi: "Re: [PHP-DEV] Cookies problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

