Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.