session::remove()
Delete a session variable so it can no longer be retrieved.
Prototype
mixed remove(string $key)
Parameters
- key - The name of the session variable to remove.
Return
Returns the old value.
Example
// remove the username session variable
$session = new \io_comand_web\session();
$session->remove('username');