RE: [PHP-WIN] setcookie

From: Date: Wed, 17 Oct 2001 06:29:14 +0000
Subject: RE: [PHP-WIN] setcookie
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9881@lists.php.net to get a copy of this message
The problem is the second parameter has to be in double quotes. setcookie("TestCookie","$value",time()+3600); should fix the problem (tested and worked on mine). > -----Original Message----- > From: Stanley [mailto:stanley@javacatz.com] > Sent: October 16, 2001 9:36 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] setcookie > > Hi, > > can anyone tell me what's the correct procedure for setcookie.. > i already tried : setcookie ("TestCookie", $value,time()+3600); > but it can't work... > > actually, i need to make the authentication page and the page should have > expiry function... > > pls help!.. thx! > > Stanley > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#9881) next »