mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Centralize stopping session
This commit is contained in:
@@ -158,9 +158,7 @@ if (isset($_GET["username"]) && !class_exists("Min_DB")) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!ini_bool("session.use_cookies") || @ini_set("session.use_cookies", false) !== false) { // @ - may be disabled
|
||||
session_write_close(); // improves concurrency if a user opens several pages at once, may be restarted later
|
||||
}
|
||||
stop_session(true);
|
||||
|
||||
if (isset($_GET["username"])) {
|
||||
list($host, $port) = explode(":", SERVER, 2);
|
||||
|
Reference in New Issue
Block a user