REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.53 KB
Close
/proc/self/root/opt/alt/tests/alt-php85-pecl-redis_6.3.0-11.el8/tests/startSession.php
Text
Base64
<?php error_reporting(E_ERROR | E_WARNING); $opt = getopt('', [ 'handler:', 'save-path:', 'id:', 'sleep:', 'max-execution-time:' , 'locking-enabled:', 'lock-wait-time:', 'lock-retries:', 'lock-expires:', 'data:', 'lifetime:', 'compression:' ]); $handler = $opt['handler'] ?? NULL; $save_path = $opt['save-path'] ?? NULL; $id = $opt['id'] ?? NULL; $sleep = $opt['sleep'] ?? 0; $max_execution_time = $opt['max-execution-time'] ?? 0; $lock_retries = $opt['lock-retries'] ?? 0; $lock_expire = $opt['lock-expires'] ?? 0; $data = $opt['data'] ?? NULL; $lifetime = $opt['lifetime'] ?? 0; $locking_enabled = $opt['locking-enabled'] ?? NULL; $lock_wait_time = $opt['lock-wait-time'] ?? 0; $compression = $opt['compression'] ?? NULL; if ( ! $handler) { fprintf(STDERR, "--handler is required\n"); exit(1); } else if ( ! $save_path) { fprintf(STDERR, "--save-path is required\n"); exit(1); } ini_set('session.save_handler', $handler); ini_set('session.save_path', $save_path); ini_set('max_execution_time', $max_execution_time); ini_set("{$handler}.session.lock_retries", $lock_retries); ini_set("{$handler}.session.lock_expire", $lock_expire); ini_set('session.gc_maxlifetime', $lifetime); ini_set("{$handler}.session.locking_enabled", $locking_enabled); ini_set("{$handler}.session.lock_wait_time", $lock_wait_time); ini_set('redis.session.compression', $compression); session_id($id); $status = session_start(); sleep($sleep); if ($data) { $_SESSION['redis_test'] = $data; } session_write_close(); echo $status ? 'SUCCESS' : 'FAILURE';
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
getSessionData.php
843 B
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
make-cluster.sh
5.08 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mkring.sh
731 B
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RedisArrayTest.php
20.02 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RedisClusterTest.php
32.68 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RedisSentinelTest.php
3.68 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RedisTest.php
330.80 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
regenerateSessionId.php
2.09 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SessionHelpers.php
9.63 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
startSession.php
1.53 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TestRedis.php
3.69 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TestSuite.php
19.22 KB
lrw-r--r--
2026-04-23 16:22:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).