Contao\Session::remove PHP Méthode

remove() public méthode

Remove a session variable
public remove ( string $strKey )
$strKey string The variable name
    public function remove($strKey)
    {
        // Map the referer (see #281)
        if (in_array($strKey, $this->mappedKeys)) {
            $this->session->remove($strKey);
        } else {
            $this->sessionBag->remove($strKey);
        }
    }