The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<html>
<head>
<title>Tests for Embperl - Set Session Data</title>
</head>


<body>


	fdat:<br>
	[- @ks = sort keys %fdat -]

	<table>
		<tr>
			<td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
		</tr>
	</table>

	udat:<br> 
	[- $off = 0 ; $off-- if ($HTML::Embperl::SessionMgnt == 2 && !defined (tied (%udat) -> getid)) ; -]
	[- @ks = grep (!/^_/, sort (keys %udat)) ; $num = keys (%udat) - $#ks - 1 + $off -]

	<table>
		<tr>
			<td>[+ $ks[$row] +]</td><td>[+ $udat{$ks[$row] || ''} +]</td>
		</tr>
	</table>

	[+ $num > 0?"ok (num=$num)":"Not a session hash (num=$num)" +]<p>

	[- 
	while (($k, $v) = each (%fdat))
		{
		$udat{$k} = $fdat{$k} ;
		}
	-]



	[- $s = $Apache::Session::MemoryStore::store || $Apache::Session::Win32::sessions  -]

	[- @ks = sort keys %$s -]

	sessions:
	<table>
		<tr>
			<td>[+ $ks[$row] +]</td><td>[+ $s -> {$ks[$row] || ''} +]</td>
		</tr>
	</table>

	<a href="cont.htm">continue</a>
	<a href="cont.htm?q=1">continue</a>
	<a href="cont.htm?q=1&b=2">continue</a>
	<form action="cont.htm">
	</form>

</body>
</html>