Source for file client.php
Documentation is available at client.php
require_once 'HTTP/SessionServer/Client.php';
$id = $session->create ();
echo " created new session with $id.\n";
echo "storing new value in key time\n";
$session->put ('time', time());
echo "storing new value in key foo\n";
$session->put ('foo', 'bar');
echo "get all keys from the session\n";
$keys = $session->getKeys ();
echo "closing session\n";
echo " opening existing session with $id.\n";
$time = $session2->get ('time');
if (!PEAR ::isError ($time)) {
echo " getting value from key time: $time\n";
echo $time->getMessage (). "\n";
echo "removing value from session\n";
$session2->remove ('time');
echo "get all keys from the session\n";
$keys = $session->getKeys ();
$time = $session2->get ('time');
if (!PEAR ::isError ($time)) {
echo " getting value from key time: $time\n";
echo $time->getMessage (). "\n";
echo "get all data from the session\n";
$all = $session2->getAll ();
$all['time_fmt'] = date('Y-m-d H:i:s');
echo "update all data in the session\n";
echo "get all keys from the session\n";
$keys = $session->getKeys ();
Documentation generated on Mon, 11 Mar 2019 13:57:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|