Hey, Thanks for replying. As you might have guessed, i'm new to using cookies....so how do i make sure that the cookie will work for http://best.... and www.best... and blah.bestweb.... etc? because thats what I thought I was doing by using .bestwebhosters.com
Thanks, -Ryan > --- Ryan A <[EMAIL PROTECTED]> wrote: > > I am setting 2 cookies like so:(setCookie.php) > ... > > setcookie("name1","1","0","",".bestwebhosters.com"); > > setcookie("name2","1","0","",".bestwebhosters.com"); > ... > > then I am trying to delete the second cookie like so:(delCookie.php) > ... > > setcookie("name2","1","-3600","",".bestwebhosters.com"); > ... > > <a href=http://bestwebhosters.com/testing/ReadCookieEx.php>Read</a> > > > > When I check ReadCookie it shows me that both hav been deleted....why? > > Don't delete the cookie, and you'll still find that both are "deleted". The > truth is that neither would be deleted, but they will only be sent to domains > within .bestwebhosters.com, which http://bestwebhosters.com is not. > > Hope that helps. > > Chris > > ===== > Become a better Web developer with the HTTP Developer's Handbook > http://httphandbook.org/ > ----- Original Message ----- From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Ryan A" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 5:34 PM Subject: Re: [PHP] deleting one cookie is deleting both..why? (tiny scripts) > --- Ryan A <[EMAIL PROTECTED]> wrote: > > I am setting 2 cookies like so:(setCookie.php) > ... > > setcookie("name1","1","0","",".bestwebhosters.com"); > > setcookie("name2","1","0","",".bestwebhosters.com"); > ... > > then I am trying to delete the second cookie like so:(delCookie.php) > ... > > setcookie("name2","1","-3600","",".bestwebhosters.com"); > ... > > <a href=http://bestwebhosters.com/testing/ReadCookieEx.php>Read</a> > > > > When I check ReadCookie it shows me that both hav been deleted....why? > > Don't delete the cookie, and you'll still find that both are "deleted". The > truth is that neither would be deleted, but they will only be sent to domains > within .bestwebhosters.com, which http://bestwebhosters.com is not. > > Hope that helps. > > Chris > > ===== > Become a better Web developer with the HTTP Developer's Handbook > http://httphandbook.org/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php