logOut() публичный Метод

Perform logout
public logOut ( ) : void
Результат void
Пример #1
0
 /**
  * Perform logout
  *
  * @return void
  */
 public function logOut()
 {
     // -> delete password cookie(s)
     if ($GLOBALS['cfg']['LoginCookieDeleteAll']) {
         foreach ($GLOBALS['cfg']['Servers'] as $key => $val) {
             $GLOBALS['PMA_Config']->removeCookie('pmaAuth-' . $key);
             if (isset($_COOKIE['pmaAuth-' . $key])) {
                 unset($_COOKIE['pmaAuth-' . $key]);
             }
         }
     } else {
         $GLOBALS['PMA_Config']->removeCookie('pmaAuth-' . $GLOBALS['server']);
         if (isset($_COOKIE['pmaAuth-' . $GLOBALS['server']])) {
             unset($_COOKIE['pmaAuth-' . $GLOBALS['server']]);
         }
     }
     parent::logOut();
 }