summaryrefslogtreecommitdiffstats
path: root/startSession.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-22 10:36:08 +0200
committerRemi Collet <remi@remirepo.net>2018-06-22 10:36:08 +0200
commitcbe554bf314452b82add1f568d7278063c8c502e (patch)
tree26ea7bc88c25bb7e240d3d55f2c9e52e01c067b5 /startSession.php
parent47abb35edde318ead04e102e88bafb90d07d85e4 (diff)
update to 4.1.0RC3 (beta, no change)
drop patches merged upstream
Diffstat (limited to 'startSession.php')
-rw-r--r--startSession.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/startSession.php b/startSession.php
deleted file mode 100644
index 2149da6..0000000
--- a/startSession.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-error_reporting(E_ERROR | E_WARNING);
-
-$redisHost = $argv[1];
-$saveHandler = $argv[2];
-$sessionId = $argv[3];
-$sleepTime = $argv[4];
-$maxExecutionTime = $argv[5];
-$lock_retries = $argv[6];
-$lock_expire = $argv[7];
-$sessionData = $argv[8];
-$sessionLifetime = $argv[9];
-
-if (empty($redisHost)) {
- $redisHost = 'tcp://localhost:6379';
-}
-
-ini_set('session.save_handler', $saveHandler);
-ini_set('session.save_path', $redisHost);
-ini_set('max_execution_time', $maxExecutionTime);
-ini_set('redis.session.lock_retries', $lock_retries);
-ini_set('redis.session.lock_expire', $lock_expire);
-ini_set('session.gc_maxlifetime', $sessionLifetime);
-
-if (isset($argv[8])) {
- ini_set('redis.session.locking_enabled', $argv[10]);
-}
-
-if (isset($argv[9])) {
- ini_set('redis.session.lock_wait_time', $argv[11]);
-}
-
-session_id($sessionId);
-$sessionStartSuccessful = session_start();
-sleep($sleepTime);
-if (!empty($sessionData)) {
- $_SESSION['redis_test'] = $sessionData;
-}
-session_write_close();
-
-echo $sessionStartSuccessful ? 'SUCCESS' : 'FAILURE'; \ No newline at end of file