xref: /PHP-5.4/ext/session/tests/014.phpt (revision 5ad03cd4)
1--TEST--
2a script should not be able to modify session.use_trans_sid
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.use_trans_sid=0
7session.use_cookies=0
8session.cache_limiter=
9session.name=PHPSESSID
10session.serialize_handler=php
11session.save_handler=files
12--FILE--
13<?php
14error_reporting(E_ALL);
15
16session_id("abtest");
17session_start();
18
19?>
20<a href="/link">
21<?php
22ini_set("session.use_trans_sid","1");
23?>
24<a href="/link">
25<?php
26ini_set("session.use_trans_sid","0");
27?>
28<a href="/link">
29<?php
30session_destroy();
31?>
32--EXPECTF--
33<a href="/link">
34
35Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
36<a href="/link">
37
38Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
39<a href="/link">
40