Re: Cookies problem
| From: | Dominic J. Eidson | Date: | Fri, 14 Jan 2000 16:17:05 +0000 |
| Subject: | Re: Cookies problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-14629@lists.php.net to get a copy of this message | ||
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/