X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-redis_5.3.7-5.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-redis_5.3.7-5.el8
/
tests
/
ðŸ“
..
📄
RedisArrayTest.php
(19.86 KB)
📄
RedisClusterTest.php
(29.05 KB)
📄
RedisSentinelTest.php
(2.58 KB)
📄
RedisTest.php
(272.24 KB)
📄
TestRedis.php
(3.3 KB)
📄
TestSuite.php
(9.5 KB)
📄
getSessionData.php
(560 B)
📄
make-cluster.sh
(5.06 KB)
📄
mkring.sh
(731 B)
📄
regenerateSessionId.php
(1.8 KB)
📄
startSession.php
(1.02 KB)
Editing: getSessionData.php
<?php error_reporting(E_ERROR | E_WARNING); $redisHost = $argv[1]; $saveHandler = $argv[2]; $sessionId = $argv[3]; $sessionLifetime = $argv[4]; if (empty($redisHost)) { $redisHost = 'tcp://localhost:6379'; } ini_set('session.save_handler', $saveHandler); ini_set('session.save_path', $redisHost); ini_set('session.gc_maxlifetime', $sessionLifetime); session_id($sessionId); if (!session_start()) { echo "session_start() was nut successful"; } else { echo isset($_SESSION['redis_test']) ? $_SESSION['redis_test'] : 'Key redis_test not found'; }
Upload File
Create Folder