php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17679 setcookie is not working finely
Submitted: 2002-06-10 08:17 UTC Modified: 2002-06-10 09:06 UTC
From: mathieu dot maura at libertysurf dot fr Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: linux mdk based
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mathieu dot maura at libertysurf dot fr
New email:
PHP Version: OS:

 

 [2002-06-10 08:17 UTC] mathieu dot maura at libertysurf dot fr
sory bug i write french.

J'utilise ie6 sur WinXP Pro et apache 1.3.24

La fonction setcookie semble ne pas vouloir effacer les cookies sauf si d'autre cookie sont define apr?s:

exemple qui ne fonctionne pas:

setcookie("mois", "") ;
setcookie("annee", "") ;

exemple qui fonctionne:

setcookie("mois", "") ;
setcookie("annee", "") ;
setcookie("C_mois", "$_mois" ) ;
setcookie("C_annee", "$_annee" ) ;


dans le premier cas phpinfo() renvoie:
_SERVER[HTTP_COOKIE"] -> mois=; annee=;

dans le deuxieme cas les cookies sont effac?s et tout marche convenablement.

Merci et vive PHP et m'Open Source

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-10 09:06 UTC] sander@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC