Skip to content

Commit 1dabb61

Browse files
committed
Merge branch 'hotfix/session_key'
2 parents f43227c + 171e9e1 commit 1dabb61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ composer require dmitry-suffi/redis-session-handler
2222

2323

2424
$redis = new Redis();
25-
if ($redis->pconnect('11.111.111.11', 6379) && $redis->select(0)) {
25+
if ($redis->connect('11.111.111.11', 6379) && $redis->select(0)) {
2626
$handler = new \suffi\RedisSessionHandler\RedisSessionHandler($redis);
2727
session_set_save_handler($handler);
2828
}

src/RedisSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RedisSessionHandler implements \SessionHandlerInterface
6262
* @param string $prefix
6363
* @param int $spinLockWait
6464
*/
65-
public function __construct(\Redis $redis, $prefix = 'session_key', $spinLockWait = 200000)
65+
public function __construct(\Redis $redis, $prefix = 'PHPREDIS_SESSION:', $spinLockWait = 200000)
6666
{
6767
$this->redis = $redis;
6868

0 commit comments

Comments
 (0)