b900b0b2c31ef72e834035e1ad1876d6 - This - That - Another Var
session_encode() = this_id|s:32:"b900b0b2c31ef72e834035e1ad1876d6";This|s:4:"This";That|s:4:"That";Another_Var|s:11:"Another Var";
[] [] [] []
0 - This
1 - and
2 - That

<?# - File x.php
//error_reporting(0);
session_start();
session_unset();//...purge sessions' vars :-)
session_register("this_id","This","That","Another_Var");
$this_id=session_id();$This="This";$That="That";$Another_Var="Another Var";
echo
"$this_id - $This - $That - $Another_Var<br>";
$e=session_encode();
echo
"session_encode() = <font color=blue>$e</font>";
session_unset();// this sets to "" all registered sessions vars AGAIN
echo"<table cellpadding=7 cellspacing=0 width=100% border=1
style='font-size:12px;font-family:arial'>
<tr><td width=100% vAlign=top>
[
$this_id] [$This] [$That] [$Another_Var]<br>";
$e='data|a:3:{i:0;s:4:"This";i:1;s:3:"and";i:2;s:4:"That";}';
$d=session_decode("$e");// we pass to this function the value of "$e"
foreach($data as $key => $value) {echo $key.' - '.$value.'<br>';}
echo
"<center><br></center>
</td><td nowrap>"
;include('c-x.php');echo"</td></tr></table>";
session_unset();//...if not set, by reloading "$e" value will be added in red.
?>