note 79877 added to function.setcookie

From: Date: Mon, 17 Dec 2007 17:26:52 +0000
Subject: note 79877 added to function.setcookie
Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-133732@lists.php.net to get a copy of this message
Hi folks, I have a problem to view my cookie. I create my cookie when a page is loaded, after I close this page and access another to view this cookie and I can't see that. follow the code Below: Cad.php (write a cookie) --------------------------- if ($primcad > 0) { echo "To update".$resultado["userID"]; setcookie("codes" , 1 , time()+3600 * 24 * 5); // 5 days } else {"You are not a member"}; --------------------- Now, I wanna see my cookie: seeck.php (read a cookie) --------------------------------- if (isset($_COOKIE["codes"])) {echo "The Cookie's value is: ".$_COOKIE["codes"];} else {// do nothing } -------------------------------------- could you please answer for marcosfac@gmailo.com? thanks for help me dudes!!! ---- Server IP: 200.185.109.13 Probable Submitter: 200.225.222.129 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/79877 Del: integrated -- https://master.php.net/note/delete/79877/integrated Del: useless -- https://master.php.net/note/delete/79877/useless Del: bad code -- https://master.php.net/note/delete/79877/bad+code Del: spam -- https://master.php.net/note/delete/79877/spam Del: non-english -- https://master.php.net/note/delete/79877/non-english Del: in docs -- https://master.php.net/note/delete/79877/in+docs Del: other reasons-- https://master.php.net/note/delete/79877 Reject -- https://master.php.net/note/reject/79877 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133732) next »