Session::killClient

(No version information available, might only be in Git)

Session::killClientKill the client

说锟斤拷

public mysql_xdevapi\Session::killClient ( integer $client_id ) : object

Kill the selected client and terminate the collection

Warning

锟斤拷锟斤拷锟斤拷锟斤拷未锟斤拷写锟侥碉拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟叫憋拷

锟斤拷锟斤拷

client_id

A connection's client ID.

锟斤拷锟斤拷值

锟斤拷锟斤拷

Example #1 mysql_xdevapi\Session::killClient() example

<?php
$session 
mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$clientid $session->getClientId();

// ...

$session->killClient($clientid);