Re: cookies

From: Date: Mon, 02 Apr 2001 18:01:45 +0000
Subject: Re: cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46670@lists.php.net to get a copy of this message
you may find that your expiry of four hours may be less then the time difference between your server and your client. are the tims on the two boxes set different ? on another note, I wouldnt bother with cookies, sessions are easier and simpler. you can use sessions in php3 with phplib. on yet another note (yat) is why do you use php3? Ive seen a few people still using php3 vs php4. I coulndt see any reasn for staying. just alot of reasons to switch. -- Chris Lee lee@mediawaveonline.com "Louis Brooks" <mbrooks@mailer.fsu.edu> wrote in message news:5.0.0.25.2.20010402152711.00a57bc0@mailer.fsu.edu... Okay, I have tried every example in the PHP Essentials book and on the php.net site that I can find on setting cookies using php3. Is there a problem with Netscape 4.x and setting cookies or is there something I have missed in setting up setcookie()? Here is the code I am using: <?php setcookie("testcookie", "testvalue", time()+14400, "/", ".callook.org"); ?> <html> <head> I do not get any errors, it just does not set a cookie. Any help would be greatly appreciated. Thanks, Louis

« previous php.general (#46670) next »