Jump to content

Can't delete cookies


53329

Recommended Posts

For some strange reason I can't seem to delete cookies.  First it kept adding a new cookie a dot in front of the host when I set an already existing one with a negative expiry but now nothing happens at all.

 

The code I'm using (with the domain changed) is:

 

setcookie( "member_id", "4", time()-3600, "/", "www.mysite.net" );

 

 

The cookie remains unchanged and I have no idea why.  The name, value, path, and host are correct but I still get nothing.  I also tried:

 

setcookie( "member_id", "", time()-3600);

 

Again to no avail.  It doesn't work on IE or FF.

 

PHP version is 4.4.7

OS is Linux

No error messages are displayed

 

Thanks in advance for any input.

Link to comment
https://forums.phpfreaks.com/topic/69291-cant-delete-cookies/
Share on other sites

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.