phpmyadmin/logout.php
Michal Čihař 11eb574242 Improve handling of logout
- add separate script for handling logout
- no longer require old_usr for all authentication methods
  (this avoids potential information leak)
- require valid token for logout

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 13:02:21 +02:00

16 lines
247 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Logout script
*
* @package PhpMyAdmin
*/
require_once 'libraries/common.inc.php';
if ($token_mismatch) {
PMA_sendHeaderLocation('./index.php');
} else {
$auth_plugin->logOut();
}