1--TEST--
2Test session_reset() function : basic functionality
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.save_path=
9session.name=PHPSESSID
10session.save_handler=files
11--FILE--
12<?php
13
14ob_start();
15
16echo "*** Testing session_abort() : basic functionality ***\n";
17
18session_start();
19$session_id = session_id();
20$_SESSION['foo'] = 123;
21session_commit();
22
23session_id($session_id);
24session_start();
25$_SESSION['bar'] = 456;
26var_dump($_SESSION);
27session_reset();
28
29var_dump($_SESSION); // Should only have 'foo'
30
31echo "Done".PHP_EOL;
32
33?>
34--EXPECT--
35*** Testing session_abort() : basic functionality ***
36array(2) {
37  ["foo"]=>
38  int(123)
39  ["bar"]=>
40  int(456)
41}
42array(1) {
43  ["foo"]=>
44  int(123)
45}
46Done
47