You are here

public function LingotekSession::logout in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 6 lingotek.session.inc \LingotekSession::logout()
  2. 7.7 lingotek.session.inc \LingotekSession::logout()
  3. 7.2 lingotek.session.inc \LingotekSession::logout()
  4. 7.4 lingotek.session.inc \LingotekSession::logout()
  5. 7.5 lingotek.session.inc \LingotekSession::logout()
  6. 7.6 lingotek.session.inc \LingotekSession::logout()
1 call to LingotekSession::logout()
LingotekSession::__destruct in ./lingotek.session.inc

File

./lingotek.session.inc, line 267
Handles api calls, logging in and logging out of LingoTek

Class

LingotekSession

Code

public function logout() {
  $json = $this
    ->request('logout');
  if ($json->results == "success") {
    $this->logged_in = FALSE;
  }
  else {
    $this->logged_in = TRUE;
    LingotekLog::error('Unable to log out.');
  }
}