Exemplo n.º 1
0
 /**
  * Logs the user out of the system and clears cookies indicating that the user is logged in.
  * This method is only useful from VuFind itself or from files which can share cookies
  * with the VuFind server.
  *
  * Sample call:
  * <code>
  * http://catalog.douglascountylibraries.org/API/UserAPI?method=logout
  * </code>
  *
  * Sample response:
  * <code>
  * {"result":true}
  * </code>
  *
  * @access private
  * @author Mark Noble <*****@*****.**>
  */
 function logout()
 {
     UserAccount::logout();
     return true;
 }
Exemplo n.º 2
0
 public function launch()
 {
     global $configArray;
     UserAccount::logout();
     header('Location: ' . $configArray['Site']['path'] . '/');
 }