note 14718 added to function.setcookie.php

From: Date: Sat, 11 Aug 2001 14:27:50 +0000
Subject: note 14718 added to function.setcookie.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16579@lists.php.net to get a copy of this message
All solution i have seen here that say to force a reload(header Location or Redirect) _inside_ the script do not fix the probleme. In fact, it just IE that do not send cookie to index. for exemple, http://host/index.php and http://host/other_file.php whill both recive the cookie but not http://host/. Even if you get the content of index.php displayed, IE while not send the cookie. This do not happend whit netscape. Solution is to place a index.php into each dir whit only an header location to the main file of that dir It prevent werd stuf that can confuse the user. btw link on web site should allway point to a file. http://www.php.net/manual/en/function.setcookie.php

« previous php.notes (#16579) next »