input_session.php 499 Bytes
<?php

include('kisel.conf.php');

$redis = new Redis();
$redis->connect($redis_url);

$sid = '';
if (!empty($_REQUEST['session_id'])) {    
    $sid = $_REQUEST['session_id'];
    $redis->set($redis_prefix . '01.sessionid', $_REQUEST['session_id']);
} 

$sid = $redis->get($redis_prefix . '01.sessionid');

?>
<html>
<body>

<form  method="POST">
Session ID: <input type="text" name="session_id" value="<?php echo $sid; ?>"><br>
<input type="submit" value="Simpan Session">
</form>
</body>
</html>