Application::unsetCookie
Unset COOKIE data
Description
public void Application::unsetCookie( [ string $name = "" ] )
Unset COOKIE data.
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$name | string | Cookie param key |
Example
Controller - First.php
$this->setCookie('foo', 'bar');
Controller - Second.php
$this->getCookie('foo'); // -> bar
Controller - Third.php
$this->unsetCookie('foo');
echo $this->getSession('foo'); // -> ''