1--TEST--
2Test basic function : variation4 use_trans_sid
3--INI--
4session.use_strict_mode=0
5session.use_only_cookies=0
6session.use_trans_sid=1
7session.save_handler=files
8session.hash_bits_per_character=4
9session.hash_function=0
10session.gc_probability=1
11session.gc_divisor=1000
12session.gc_maxlifetime=300
13session.save_path=
14session.name=PHPSESSID
15session.trans_sid_tags="a=href,area=href,frame=src,form="
16url_rewriter.tags="a=href,area=href,frame=src,form="
17--EXTENSIONS--
18session
19--SKIPIF--
20<?php include('skipif.inc'); ?>
21--FILE--
22<?php
23
24ob_start();
25
26echo "*** Testing basic session functionality : variation4 use_trans_sid ***\n";
27
28echo "*** Test trans sid ***\n";
29output_add_rewrite_var('testvar1','testvalue1');
30
31session_id('test1');
32session_start();
33
34echo '
35<a href="/">
36<form action="" method="post">
37</form>
38';
39
40session_commit();
41
42output_add_rewrite_var('testvar2','testvalue2');
43
44session_id('test2');
45session_start();
46echo '
47<a href="/">
48<form action="" method="post">
49</form>
50';
51?>
52--EXPECT--
53*** Testing basic session functionality : variation4 use_trans_sid ***
54*** Test trans sid ***
55
56<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2">
57<form action="" method="post"><input type="hidden" name="testvar1" value="testvalue1" /><input type="hidden" name="testvar2" value="testvalue2" /><input type="hidden" name="PHPSESSID" value="test2" />
58</form>
59
60<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2">
61<form action="" method="post"><input type="hidden" name="testvar1" value="testvalue1" /><input type="hidden" name="testvar2" value="testvalue2" /><input type="hidden" name="PHPSESSID" value="test2" />
62</form>
63