diff --git a/src/DNode/Session.php b/src/DNode/Session.php index e8ed636..7fc7f40 100644 --- a/src/DNode/Session.php +++ b/src/DNode/Session.php @@ -77,6 +77,14 @@ public function handle($req) { $session = $this; + if ($req->method === 'cull') { + foreach ($req->arguments as $id) { + unset($this->callbacks[$id]); + } + + return; + } + // Register callbacks from request $args = $this->unscrub($req);