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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cbair at dragonmagic dot net
New email:
PHP Version: OS:

 

 [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 14:04:04 2025 UTC