Here's a compilation of some recent conclusions I've gotten from the same discussion:
This is how I chose to set the variables: // $username and $password are passed from a previous page's form. $time = mktime()+1800; $date = gmdate("D, d-M-Y H:i:s", ($time)); $password = md5 ($password); header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/; domain='.$SERVER_ADDR); header ('Set-Cookie: password='.$password.'; expires='.$date.' GMT; path=/; domain='.$SERVER_ADDR); Produces: Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; domain=www.php.net Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; domain=www.php.net Whereas these two calls (per Rasmus Lerdorf): SetCookie('username',$username,time()+1800,'/',$SERVER_ADDR); SetCookie('password',$password,time()+1800,'/',$SERVER_ADDR); Produce: Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-01 21:58:55 GMT; path=/; domain=www.php.net Set-Cookie: password=d41d8cd98f00b204e9800998ecf8427e; expires=Wed, 12-Dec-01 21:58:55 GMT; path=/; domain=www.php.net Putting them side by side to make it easier to compare: Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-2001 21:58:55 GMT; path=/; domain=www.php.net Set-Cookie: username=Rasmus; expires=Wed, 12-Dec-01 21:58:55 GMT; path=/; domain=www.php.net Ramsus wrote: > They are identical except for the PHP SetCookie() version using a 2-digit > year (which can be changed in your php.ini file with the y2k directive). -- Casey Allen Shobe [EMAIL PROTECTED] 'Why do people with closed minds always open their mouths?' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]