you need the exact same parameters as you used to set the cookie.

http://www.php.net/manual/en/function.setcookie.php




                                                                                       
                             
                    "Seabird"                                                          
                             
                    <jacco@vliegt.       To:     [EMAIL PROTECTED]                  
                             
                    nl>                  cc:                                           
                             
                                         Subject:     [PHP-DB] killing cookie          
                             
                    11/01/2002                                                         
                             
                    07:16 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




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

Reply via email to