deleting the damn cookies
Posted: Thu Jul 11, 2002 8:39 pm
now i'm having more problems with those pesky cookies.... anyway i'm creating a logout page which should be easy but my incompetence amazes me ... anyway i duno whats wrong with this it wont update the online file to n like i want and it wont delete the cookies
arg
Code: Select all
if (isset($idcbaa)){
$dbh = mysql_connect ("localhost", "dragonsb_xmb1", "password") or die ('I cannot connect to the database.');
mysql_select_db ("dragonsb_xmb1");
mysql_query("UPDATE users SET online='n' WHERE id='$idcbaa'");
}
setcookie ("idcbaa","",time()-3600,"/","cbaa.vze.com");
setcookie ("logcbaa","",time()-3600,"/","cbaa.vze.com");