From fb7bd027132d121a1a1095be480381126e97e1c5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 9 Apr 2017 11:03:42 +0200 Subject: [PATCH] Don't overwrite previous cookies (bug #539) --- adminer/include/functions.inc.php | 4 ++-- changes.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 928f01a1..d8383e4d 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -481,8 +481,8 @@ function cookie($name, $value, $lifetime = 2592000) { // 2592000 - 30 days . ($lifetime ? "; expires=" . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT" : "") . "; path=" . preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]) . ($HTTPS ? "; secure" : "") - . "; HttpOnly; SameSite=lax" - ); + . "; HttpOnly; SameSite=lax", + false); } /** Restart stopped session diff --git a/changes.txt b/changes.txt index ffbd04c2..40c2a8d9 100644 --- a/changes.txt +++ b/changes.txt @@ -1,4 +1,5 @@ Adminer 4.3.1-dev: +Fix permanent logging after logout (bug #539) PostgreSQL: Fix index size computation in PostgreSQL < 9.0 (regression from 4.3.0) PostgreSQL: Fix nullable fields in export PostgreSQL: Support JSON and JSONB data types