note 23129 added to function.setcookie

From: Date: Wed, 10 Jul 2002 12:36:10 +0000
Subject: note 23129 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-32832@lists.php.net to get a copy of this message
Using IIS 5 and PHP4.1.2 if you use : setcookie("user","$info",time()+15552000); and after : Header("Location: index.php"); the cookie can't be set. solution : print '<html><head><meta http-equiv="refresh" content="0;URL=index.php"></head></html>'; instead of the header. it's running! Jeff -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+23129 http://master.php.net/manage/user-notes.php?action=delete+23129 http://master.php.net/manage/user-notes.php?action=reject+23129

« previous php.notes (#32832) next »