mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
parent
07f4779efe
commit
a753718387
1 changed files with 7 additions and 1 deletions
|
@ -307,11 +307,17 @@ class CookieComponent extends Component {
|
||||||
* Delete a cookie value
|
* Delete a cookie value
|
||||||
*
|
*
|
||||||
* Optional [Name.], required key
|
* Optional [Name.], required key
|
||||||
* $this->Cookie->read('Name.key);
|
* $this->Cookie->delete('Name.key);
|
||||||
*
|
*
|
||||||
* You must use this method before any output is sent to the browser.
|
* You must use this method before any output is sent to the browser.
|
||||||
* Failure to do so will result in header already sent errors.
|
* Failure to do so will result in header already sent errors.
|
||||||
*
|
*
|
||||||
|
* This method will delete both the top level and 2nd level cookies set.
|
||||||
|
* For example assuming that $name = App, deleting `User` will delete
|
||||||
|
* both `App[User]` and any other cookie values like `App[User][email]`
|
||||||
|
* This is done to clean up cookie storage from before 2.4.3, where cookies
|
||||||
|
* were stored inconsistently.
|
||||||
|
*
|
||||||
* @param string $key Key of the value to be deleted
|
* @param string $key Key of the value to be deleted
|
||||||
* @return void
|
* @return void
|
||||||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::delete
|
* @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::delete
|
||||||
|
|
Loading…
Add table
Reference in a new issue