File: getsdaturlsess.htm

package info (click to toggle)
libhtml-embperl-perl 1.3.6-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,524 kB
  • ctags: 1,182
  • sloc: ansic: 8,983; perl: 4,555; makefile: 83
file content (38 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<title>Tests for Embperl - Get State Session Data</title>
</head>


<body>


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

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

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

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

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

	<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>