Cookie::delete (method)

Last updated: Mon, Dec 18, 2023 4:20 am
Return to Knowledgebase

Purpose

Expires cookie

Location

users/classes/Cookie.php

Version Information

First Introduced v2.5.0

Parameters

This function does not take any arguments

Example

Cookie::delete('cookieName')

Further Documentation:

Doesn't technically delete the cookie. It expires it and the system deletes it. Cookie name is set in init.php.
Cookie::delete('cookieName');