From 390ba2799857877605a483651b2a8676b483e416 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Wed, 11 Nov 2015 06:05:41 -0500 Subject: [PATCH] Attempted fix for issue #1500 where $config->pagefileSecure combined with module SessionHandlerDB could result in useless logged exceptions. --- .../Session/SessionHandlerDB/SessionHandlerDB.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module b/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module index 8dca69df..83967d16 100644 --- a/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module +++ b/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module @@ -107,7 +107,11 @@ class SessionHandlerDB extends WireSessionHandler implements Module, Configurabl $query = $database->prepare($sql); $result = $query->execute() ? true : false; - $database->exec("SELECT RELEASE_LOCK('$id')"); + $query->closeCursor(); + + $query = $database->prepare("SELECT RELEASE_LOCK('$id')"); + $query->execute(); + $query->closeCursor(); return $result; }