Skip to content

Kirby 4.5.0

$session->remove()

Removes one or multiple session values by key

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

Parameters

Name Type Default Description
$key * array|string The key to remove or an array with multiple keys

Parent class

Kirby\Session\SessionData