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; + } } }