Tests for Embperl - Set Session Data

fdat:
[- @ks = sort keys %fdat -]

[+ $ks[$row] +] | [+ $fdat{$ks[$row] || ''} +]

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

[+ $ks[$row] +] | [+ $udat{$ks[$row] || ''} +]

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

[- while (($k, $v) = each (%fdat)) { $udat{$k} = $fdat{$k} ; } -] [- $s = $Apache::Session::MemoryStore::store || $Apache::Session::Win32::sessions -] [- @ks = sort keys %$s -] sessions:

[+ $ks[$row] +] | [+ $s -> {$ks[$row] || ''} +]