summaryrefslogtreecommitdiffstats
path: root/getSessionData.php
diff options
context:
space:
mode:
Diffstat (limited to 'getSessionData.php')
-rw-r--r--getSessionData.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/getSessionData.php b/getSessionData.php
deleted file mode 100644
index d49256c..0000000
--- a/getSessionData.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?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';
-}