note 45179 rejected from function.setcookie by aidan

From: Date: Sat, 28 Aug 2004 07:45:31 +0000
Subject: note 45179 rejected from function.setcookie by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75488@lists.php.net to get a copy of this message
Note Submitter: kumar at indianbizdirectory dot com ---- I dunno but this fails <? /* File Set_Cookie.php */ if(setcookie("mycookie","Tasty",time()+$cookietime)) header('Location: index.php?reason=cookieset'); ?> <? /* File index.php */ if($reason=="cookieset") echo "cookie is $mycookie"; ?> result is "cookie is " I am using a This setup on LAN for cheking. This works fine on my machine but on LAn it fails. Plz help.

« previous php.notes (#75488) next »