roundcubemail/program/lib/Roundcube/rcube_session.php
public function remove($var=null)
    {
        if (empty($var)) {
            return $this->destroy(session_id());
        }

        $this->unsets[] = $var;

        if (isset($_SESSION[$var])) {
            unset($_SESSION[$var]);
        }
        else {
            $path = explode('.', $var);
            $key = array_pop($path);
            $node = &$this->get_node($path, $_SESSION);
            unset($node[$key]);
        }

        return true;
    }
public function remove($var=null)
    {
        if (empty($var)) {
            return $this->destroy(session_id());
        }

        $this->unsets[] = $var;

        if (isset($_SESSION[$var])) {
            unset($_SESSION[$var]);
        }
        else {
            $path = explode('.', $var);
            $key = array_pop($path);
            $node = &$this->get_node($path, $_SESSION);
            unset($node[$key]);
        }

        return true;
    }
public function remove ( $ var = null ) { if ( empty ( $ var ) ) { return $ this -> destroy ( session_id ( ) ) ; } $ this -> unsets [ ] = $ var ; if ( isset ( $ _SESSION [ $ var ] ) ) { unset ( $ _SESSION [ $ var ] ) ; } else { $ path = explode ( '.' , $ var ) ; $ key = array_pop ( $ path ) ; $ node = & $ this -> get_node ( $ path , $ _SESSION ) ; unset ( $ node [ $ key ] ) ; } return true ; }
Unset a session variable

@param string Variable name (can be a path denoting a certain node in the session array, e.g. compose.attachments.5)
@return boolean True on success
Unset a session variable