<?php
include "dcSessionManager.inc.php";
$linkId = mysql_connect("localhost", "userhere", "password");
mysql_select_db("databasehere");
$name = "Guilherme Blanco";
$sess = new dcSessionManager("default", $linkId);
$sess->setSaveSession(1);
$bReturn = $sess->setSessionValue("name");
echo "Values in the table:<br />";
echo print_r($sess->getSessionValues());
echo "<br /><br />";
echo "Value of the cookie that I store in your HD:<br />";
echo $_COOKIE['hash'];
echo "<br /><br />";
echo "<br /><br />";
echo "Close and reopen this page again. Your data will be here yet!";
?>
|