public function ServicesClientConnectionSessionAuth::logout in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/plugins/ServicesClientConnectionSessionAuth.inc \ServicesClientConnectionSessionAuth::logout()
Implements logout().
Overrides ServicesClientConnectionAuth::logout
File
- services_client_connection/
plugins/ ServicesClientConnectionSessionAuth.inc, line 90 - Session authentication for 3.x version
Class
- ServicesClientConnectionSessionAuth
- @file Session authentication for 3.x version
Code
public function logout() {
if ($this->sessid) {
$response = $this->client
->action('user', 'logout');
$this->sessid = NULL;
$this->session_name = NULL;
$this->user = NULL;
$this->csrf_token = NULL;
}
}