note 11707 modified in setcookie by torben

From: Date: Thu, 15 Mar 2001 10:43:29 +0000
Subject: note 11707 modified in setcookie by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-12430@lists.php.net to get a copy of this message
I had the same problem as admin@digitart.com.mx for IE 5.0+; funny thing is that the first statement worked for about 2 weeks then stopped for some unknown reason - no updates to IE, no updates to the php code, no nothing.... After 3 hours of sitting here messing around I found this comment and added the quotes around my expire statement and it seems to have worked (for now). setcookie ("TestCookie", $value,time()+3600); //doesn't work setcookie ("TestCookie", $value,"time()+3600"); //it works As a note, I've been weeding through the comments and trying just about all of them. I tried to set cookies through meta tags as that seemed to work for some. No luck for me - Netscape worked like a charm but IE was very stubborn. The quotes finally worked for both. Good luck! Take-home point - IE is extremely persnickety!!! http://www.php.net/manual/setcookie.php

« previous php.notes (#12430) next »