Reference

Guide

$session->remove()

Removes one or multiple session values by key

$session->remove(string|array $key): void

Parameters

Name Type Default Description
$key string|array

The key to remove or an array with multiple keys

Source code

kirby/src/Session/SessionData.php#L213