Possible Duplicate:
Where are $_SESSION variables stored?
When ever we working with session, we need to start the session in each page. now suppose i have set the session in 1.php
now redirecting to 2.php
, in 2.php page i am starting the session again there is no any link between 1.php
and 2.php
. 2.php
is not knowing what is the session id
of 1.php
.
Now my question is How this 2.php
is getting the same session id
started by 1.php
. Where this session is stored? how it is working?
Here we are not passing any parameter from 1.php to 2.php, as Frederick Marcoux is saying SESSION_START() is IGNORED by 2.php. So how 2.php will get to know that session is already running.
if it is on server side,then in case of multiple session then how will it identify which session is for which request?