diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php index a1515c97..6f2d68d4 100644 --- a/adminer/include/export.inc.php +++ b/adminer/include/export.inc.php @@ -153,6 +153,7 @@ function dump_headers($identifier, $multi_table = false) { if ($_POST["output"] == "file" || $compress) { header("Content-Disposition: attachment; filename=$filename.$ext" . (ereg('[0-9a-z]', $compress) ? ".$compress" : "")); } + session_write_close(); return $ext; } diff --git a/editor/include/export.inc.php b/editor/include/export.inc.php index 3c92fce9..319410a5 100644 --- a/editor/include/export.inc.php +++ b/editor/include/export.inc.php @@ -18,6 +18,7 @@ function dump_headers($identifier) { $ext = "csv"; header("Content-Type: text/csv; charset=utf-8"); header("Content-Disposition: attachment; filename=$filename.$ext"); + session_write_close(); return $ext; }