Skip to content

Commit

Permalink
[#14688] - If the uniqueId is not set return the session key as is
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jan 6, 2020
1 parent 392bd9c commit 0efda8d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion phalcon/Session/Manager.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 0efda8d

Please sign in to comment.