ManaPHP\Http\Session\Bag::remove PHP Method

remove() public method

$user->remove('name');
public remove ( string $property ) : void
$property string
return void
    public function remove($property)
    {
        $defaultCurrentValue = [];
        $data = $this->session->get($this->_name, $defaultCurrentValue);
        unset($data[$property]);
        $this->session->set($this->_name, $data);
    }