Cookie · Mecha CMS

Persistent storage using cookies.

$cookie::reset()

Author: Taufik Nurrohman · 184 Views

Tweet

Remove a cookie.

Cookie::reset($key = null);

Example:

Cookie::reset('my_cookie');

Remove multiple cookies:

Cookie::reset(['my_cookie', 'your_cookie', 'our_cookie']);

Remove all cookies:

Cookie::reset();