public function onSessionLeave($args, $kwArgs, $options)
    {
        if (!empty($args[0]['session'])) {
            foreach ($this->_sessions as $key => $details) {
                if ($args[0]['session'] == $details['session']) {
                    echo "Session {$details['session']} leaved\n";
                    unset($this->_sessions[$key]);
                    return;
                }
            }
        }
    }
public function onSessionLeave($args, $kwArgs, $options)
    {
        if (!empty($args[0]['session'])) {
            foreach ($this->_sessions as $key => $details) {
                if ($args[0]['session'] == $details['session']) {
                    echo "Session {$details['session']} leaved\n";
                    unset($this->_sessions[$key]);
                    return;
                }
            }
        }
    }
public function onSessionLeave ( $ args , $ kwArgs , $ options ) { if ( ! empty ( $ args [ 0 ] [ 'session' ] ) ) { foreach ( $ this -> _sessions as $ key => $ details ) { if ( $ args [ 0 ] [ 'session' ] == $ details [ 'session' ] ) { echo "Session {$details['session']} leaved\n" ; unset ( $ this -> _sessions [ $ key ] ) ; return ; } } } }
Handle on session leaved

@param array $args
@param array $kwArgs
@param array $options
@return void
@link https://github.com/crossbario/crossbar/wiki/Session-Metaevents
Handle on session leaved