Cookies not working right on Win 2000 and IIS 5

From: Date: Fri, 15 Mar 2002 05:57:18 +0000
Subject: Cookies not working right on Win 2000 and IIS 5
Groups: php.windows 
Request: Send a blank email to php-windows+get-12648@lists.php.net to get a copy of this message
Hi, Apart from RedHat Linux, I have also started using PHP on Windows 2000 Professional with MySQL database. Eveything is working perfectly except cookies. As an example, if I use the following code: <?php setcookie("name", "test") ; print("$name") ; ?> "test" is not printed at first. If I do a browser refresh, it does get printed. This is true even if I set all relevent parameters for setcookie. The cookies work fine in Linux and also on all my clients Linux server. I am using the php.exe file from the InstallShield version of Windows PHP from php.net. Would greatly appreciate any help on where I am going wrong or what needs to be done. The php.ini file has a session save path but nothing for cookies. Regards, Arijit Chaudhuri

« previous php.windows (#12648) next »