note 75343 modified in function.setcookie by danbrown

From: Date: Sun, 17 May 2009 17:50:47 +0000
Subject: note 75343 modified in function.setcookie by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155030@lists.php.net to get a copy of this message
About the delete part, I found that Firefox only remove the cookie when you submit the same values for all parameters, except the date, which sould be in the past. Submiting blank values didn't work for me. Example : - set - <?php setcookie( "name", "value", "future_timestamp", "path", "domain" ); ?> - delete - <?php setcookie( "name", "value", "past_timestamp", "path", "domain" ); ?> Jonathan --was-- About the delete part, I found that Firefox only remove the cookie when you submit the same values for all parameters, except the date, which sould be in the past. Submiting blank values didn't work for me. Example : - set - setcookie( "name", "value", "future_timestamp", "path", "domain" ); - delete - setcookie( "name", "value", "past_timestamp", "path", "domain" ); Jonathan http://php.net/manual/en/function.setcookie.php

« previous php.notes (#155030) next »