note 45179 added to function.setcookie

From: Date: Sat, 28 Aug 2004 05:33:50 +0000
Subject: note 45179 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-75487@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45179 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45179&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45179&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75487) next »