Jump to content

[SOLVED] Problems deleting my cookies


almightyegg

Recommended Posts

Have you tried adding the path and domain to the setcookie?

 

Are you on localhost or a live server?

 

<?php

setcookie("email", "", time() - 3600, '/', '.domain.com');
setcookie("password", "", time() - 3600, '/', '.domain.com');
Header("Location: test.php");

?>

 

It also depends on how you set the cookies initially, post that code.

 

Incase you are trying this on localhost I suggest you read this article:

http://www.aeonity.com/frost/php-setcookie-localhost-apache

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.