Skip to content

Commit

Permalink
Support delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Sep 9, 2020
1 parent e6e9dc5 commit 40c6b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Cookie/ContextCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 40c6b95

Please sign in to comment.