Skip to main content

Application::unsetCookie

Unset COOKIE data

Description

public void Application::unsetCookie( [ string $name = "" ] )

Unset COOKIE data.

Arguments

NameData typeDefaultRemarks
$namestringCookie 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'); // -> ''