Jump to content

Removing A Cookie?


villermen
 Share

Recommended Posts

I've created a page to log someone out.The cookie:id that was created at the login will be deleted.The only problem is, it won't be deleted!The script: (I've changed the language so it is a bit more readable for you (it was in dutch))

<html><?phpif (isset($_COOKIE["id"]))	{	setcookie("id","",time()-1);	$message="<p>You are now logged out.</p>";	//delete db entry	}else	$message="<p>You are already logged out!</p>";<head></head><body><?phpecho $message;?></body></html>

Could it be the combination of isset(cookie) and the cookie itself inside it?Thanks.Villermen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...