From 40c6b95e3229503770d5710922ec8ee38c30c312 Mon Sep 17 00:00:00 2001 From: Brooke Bryan Date: Wed, 9 Sep 2020 12:44:05 +0100 Subject: [PATCH] Support delete --- src/Cookie/ContextCookie.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Cookie/ContextCookie.php b/src/Cookie/ContextCookie.php index 953e2eb..89caf43 100644 --- a/src/Cookie/ContextCookie.php +++ b/src/Cookie/ContextCookie.php @@ -46,4 +46,10 @@ public function store() $this->getContext()->cookies()->store($this->name(), $this->_getRawValue(), $this->ttl()); return $this; } + + public function delete() + { + $this->getContext()->cookies()->delete($this->name()); + return $this; + } }