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--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-- 51*** Testing basic session functionality : variation4 use_trans_sid *** 52*** Test trans sid *** 53 54<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2"> 55<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" /> 56</form> 57 58<a href="/?PHPSESSID=test2&testvar1=testvalue1&testvar2=testvalue2"> 59<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" /> 60</form> 61