Re: killing cookie

From: Date: Fri, 01 Nov 2002 18:25:48 +0000
Subject: Re: killing cookie
Groups: php.db 
Request: Send a blank email to php-db+get-22903@lists.php.net to get a copy of this message
try setcookie('user'); setcookie with no parameters other than name deletes the cookie. Lee "Seabird" <jacco@vliegt To: php-db@lists.php.net .nl> cc: Subject: Re: [PHP-DB] killing cookie 11/01/2002 07:23 AM Nope, doesn't work. In PHP manual the say that the correct way is to set the cookie in a already expired time. That's why I used time()-60 but it doesn't work... Anybody else? Jacco -- http://seabird.jmtech.ca Attitude is Everything! But Remember, Attitudes are Contagious! Is Yours worth Catching???? "Josh Johnson" <mailing_lists@allusiveimage.com> wrote in message news:004101c281d3$55b80100$8b00a8c0@manpa... > I'm pretty sure you just have to set a cookie to an empty string to > delete it, i.e., no expiration time > > -- Josh > > -----Original Message----- > From: Seabird [mailto:jacco@vliegt.nl] > Sent: Friday, November 01, 2002 7:16 AM > To: php-db@lists.php.net > Subject: [PHP-DB] killing cookie > > Hi everyone, > > I don't understand why my cookie won't be removed. > > I set my cookie: > > setcookie('user',$_SESSION['username'],time()+36000); > setcookie('pass',$_SESSION['password'],time()+36000); > > I kill my cookie: > > setcookie('user','',time()-60); > setcookie('pass','',time()-60); > > but it doesn't work..... why not?? > Jacco > > -- > http://seabird.jmtech.ca > > Attitude is Everything! > But Remember, Attitudes are Contagious! > Is Yours worth Catching???? > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#22903) next »