Ask a Question related to PHP Development, Design and Development.
-
Ryan A #1
deleting one cookie is deleting both..why? (tiny scripts)
Hi again,
I am setting 2 cookies like so:(setCookie.php)
<?php
setcookie("name1","1","0","",".bestwebhosters.com" );
setcookie("name2","1","0","",".bestwebhosters.com" );
echo "done";
?>
then I am trying to delete the second cookie like so:(delCookie.php)
<?php
setcookie("name2","1","-3600","",".bestwebhosters.com");
echo "done";
?>
<a href=http://bestwebhosters.com/testing/ReadCookieEx.php>Read</a>
When I check ReadCookie it shows me that both hav been deleted....why?
How can i delete just one of the two cookies?
*******************************************
(for those of you intrested heres my ReadCookie file)
<?php
if (isset($_COOKIE ['name1'])){
echo $_COOKIE ['name1'];
}else{echo "wrong1";}
if (isset($_COOKIE ['name2'])){
echo $_COOKIE ['name2'];
}else{echo "wrong2";}
?>
********************************************
Kindly reply.
Cheers,
-Ryan
Ryan A Guest
-
Deleting DTD
Using ID CS 3.0.1 / Win XP. My typical use is to take a newsletter document created within ID, import a DTD, map style to tags, export XML and... -
Deleting Indexed Cookie
Hello, On one of my webpages, I use a cookie to automatically log a user in: Response.Cookie("USER")("USERNAME") = "Steve"... -
#25629 [Opn->Bgs]: session cookie being set to deleted when deleting a session
ID: 25629 Updated by: sniper@php.net Reported By: john at tarot dot com -Status: Open +Status: Bogus... -
[PHP] deleting one cookie is deleting both..why? (tiny scripts)
--- Ryan A <ryan@jumac.com> wrote: If you are setting the cookie from bestwebhosters.com, the best way (my opinion) is to not specify the domain,... -
Deleting ICS
For some reason my ICS is working intermittenly . . . I almost always have to click the reload button several times in IE before the page loads. I...



Reply With Quote

