note 1081 modified in setcookie by ronabop

From: Date: Sat, 26 Aug 2000 05:32:34 +0000
Subject: note 1081 modified in setcookie by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3330@lists.php.net to get a copy of this message
I have found that insuring that the server name in the URL must match the server canonical name in order for stuff to work most reliably. I use something like this in a strategic location before I start fiddling with cookies: if ($HTTP_HOST != $SERVER_NAME) { header("HTTP/1.0 301"); header("Location: ".METHOD."://".$SERVER_NAME.$PHP_SELF); exit; } http://www.php.net/manual/function.setcookie.php

« previous php.notes (#3330) next »