I try to understand how Symfony isolate SESSION values of application. I create two files:
// test.php
session_start();
$_SESSION['aaa'] = 111;
var_dump($_SESSION);
and
// test2.php
session_start();
var_dump($_SESSION);
So when I call http://localhost/test.php
and then call http://localhost/test2.php
, I get same SESSION in both files:
array(1) { ["aaa"]=> int(111) }
But when I add to the end of symfony front controller app_dev.php
next code:
var_dump($_SESSION);
and try to call http://localhost/app_dev.php
- I get only Symfony session
array(3) { ["_sf2_attributes"]=> &array(0) { } ["_sf2_flashes"]=> &array(0) { } ["_sf2_meta"]=> &array(3) { ["u"]=> int(1396360435) ["c"]=> int(1396360433) ["l"]=> string(1) "0" } }
and I don't get access to the array(1) { ["aaa"]=> int(111) }
value, that I expected.
Why? And how can i do mutual session values with this 3 files?