note 12417 deleted from function.setcookie by sniper

From: Date: Wed, 11 Dec 2002 07:13:29 +0000
Subject: note 12417 deleted from function.setcookie by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40709@lists.php.net to get a copy of this message
I almost smashed my keyboard when i found out Setcookie() + Header(Location: ) were working allright on localhost, but not on a webserver :D The quick correct way : setcookie("Cookiename",$cookie_content, "time()+3600"); /* expire in 1 hour */ header("Refresh: 0;url=$redirect_url"); $maintext="Wait a sec plz. Logging in..."; Make sure you give the user a message to wait. it could be confusing for them.

« previous php.notes (#40709) next »