Method: s::remove
Removes a value from the session by key
Info
Syntax
s::remove($key)
Parameters
- $key (mixed) The key to remove by
Return (array)
The session array without the value
Example
$_SESSION = array(
'username' => 'bastian',
'id' => 1,
);
s::remove('username');
// $_SESSION = array(
// 'id' => 1
// )