Server IP : 192.158.238.246 / Your IP : 18.191.136.109 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cpanel/ea-php80/root/usr/share/tests/pecl/redis/tests/ |
Upload File : |
<?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'; }