Method: s::remove

Removes a value from the session by key

Info

Syntax

s::remove($key)

Parameters

Return (array)

The session array without the value

Example


$_SESSION = array(
    'username' => 'bastian',
    'id' => 1,
);

s::remove('username');
// $_SESSION = array(
//    'id' => 1
// )