mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Improve session restarting
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1227 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -52,10 +52,6 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
||||
if (strlen(DB) && $databases && !in_array(DB, $databases, true)) {
|
||||
$databases = null;
|
||||
}
|
||||
if ((isset($databases) && !isset($_GET["sql"])) || !ini_get("session.use_cookies")) {
|
||||
// improves concurrency if a user opens several pages at once
|
||||
session_write_close();
|
||||
}
|
||||
if ($error) {
|
||||
echo "<div class='error'>$error</div>\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user