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.gc_probability=1
9session.gc_divisor=1000
10session.gc_maxlifetime=300
11session.save_path=
12session.name=PHPSESSID
13session.trans_sid_tags="a=href,area=href,frame=src,form="
14url_rewriter.tags="a=href,area=href,frame=src,form="
15--EXTENSIONS--
16session
17--SKIPIF--
18<?php include('skipif.inc'); ?>
19--FILE--
20<?php
21
22ob_start();
23
24echo "*** Testing basic session functionality : variation4 use_trans_sid ***\n";
25
26echo "*** Test trans sid ***\n";
27output_add_rewrite_var('testvar1','testvalue1');
28
29session_id('test1');
30session_start();
31
32echo '
33<a href="/">
34<form action="" method="post">
35</form>
36';
37
38session_commit();
39
40output_add_rewrite_var('testvar2','testvalue2');
41
42session_id('test2');
43session_start();
44echo '
45<a href="/">
46<form action="" method="post">
47</form>
48';
49?>
50--EXPECT--
51Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0
52
53Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0
54*** Testing basic session functionality : variation4 use_trans_sid ***
55*** Test trans sid ***
56
57<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2">
58<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" />
59</form>
60
61<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2">
62<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" />
63</form>
64