Jump to content

delete cookie not working.


peterjc

Recommended Posts

I am creating just a simple login using cookies. 

 

So, to set the cookie i use:

setcookie("user", "login", time()+3600);

 

Then at logout, i delete the cookie using:

$past = time() - 3600;

setcookie("user", "", $past);

 

The problem is the cookie is not delete in mozilla(version 3.06) browser and work just fine in IE.

 

Could someone find out what is the problem?

Thank in advance.

Link to comment
https://forums.phpfreaks.com/topic/145880-delete-cookie-not-working/
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.