Skip to content

Commit ff0748e

Browse files
authored
Update MemcachedHandler.php
memcached.sess_prefix setting missing.
1 parent 88f687a commit ff0748e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

system/Session/Handlers/MemcachedHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public function __construct(BaseConfig $config, string $ipAddress)
9494
{
9595
$this->keyPrefix .= $this->ipAddress . ':';
9696
}
97+
98+
if(!empty($this->keyPrefix))
99+
{
100+
ini_set('memcached.sess_prefix', $this->keyPrefix);
101+
}
97102

98103
$this->sessionExpiration = $config->sessionExpiration;
99104
}

0 commit comments

Comments
 (0)