From 0efda8d80f287696e1885575519cf6bb77212ca4 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 6 Jan 2020 14:09:06 -0500 Subject: [PATCH] [#14688] - If the uniqueId is not set return the session key as is --- phalcon/Session/Manager.zep | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phalcon/Session/Manager.zep b/phalcon/Session/Manager.zep index e2906a20fd0..96b2f150144 100644 --- a/phalcon/Session/Manager.zep +++ b/phalcon/Session/Manager.zep @@ -359,6 +359,14 @@ class Manager extends AbstractInjectionAware implements ManagerInterface */ private function getUniqueKey(string key) -> string { - return this->uniqueId . "#" . key; + var uniqueId; + + let uniqueId = this->uniqueId; + + if !empty uniqueId { + return this->uniqueId . "#" . key; + } else { + return key; + } } }