$sessionremoveFor()

Unset a session variable within a namespace

Usage

$session->removeFor($ns, string $key);

Arguments

NameType(s)Description
$nsstring object

Namespace

$keystring

Provide name of variable to remove, or boolean true to remove all in namespace.

Return value

$this

Object instance it was called from (method supports fluent interface).


$session methods and properties

API reference based on ProcessWire core version 3.0.251