php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19825 FR: stripcookie() / clearcookie()
Submitted: 2002-10-09 00:49 UTC Modified: 2002-10-09 01:21 UTC
From: cbair at dragonmagic dot net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.3 OS: All
Private report: No CVE-ID: None
 [2002-10-09 00:49 UTC] cbair at dragonmagic dot net
If possible, I request that PHP include the following functions:

stripcookie()
  ability to remove one part of a cookie, or set it to null/false, without harming the rest of the cookie for that domain

clearcookie()
  ability to quickly remove all parts of a cookie, or set it all to null/false, and remove any trace of it

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 01:21 UTC] rasmus@php.net
This makes no sense.  SetCookie() can be used to both set and clear a cookie.  The actual value of a cookie is completely up to you.  If you have multiple values inside the cookie itself, then it is up to you to parse that cookie entitity appropriately.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 05:01:34 2025 UTC