Skip to content

Commit 61e47a3

Browse files
author
Sascha Schumann
committed
use_trans_sid should not affect SID
1 parent 8882b28 commit 61e47a3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ext/session/tests/015.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
use_trans_sid should not affect SID
3+
--SKIPIF--
4+
<?php include('skipif.inc'); ?>
5+
--INI--
6+
session.use_trans_sid=1
7+
session.use_cookies=0
8+
session.cache_limiter=
9+
--FILE--
10+
<?php
11+
error_reporting(E_ALL);
12+
13+
session_id("abtest");
14+
session_start();
15+
?>
16+
<a href="/link?<?php echo SID; ?>">
17+
<?php
18+
session_destroy();
19+
?>
20+
--EXPECT--
21+
<a href="/link?PHPSESSID=abtest&PHPSESSID=abtest">

0 commit comments

Comments
 (0)