"vishal" <vi************@yahoo.co.in> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
i am running php script which creates session and stores some value in
session variables. then this file calls the another php script which
displays the values stored in session variables.
as far as i have no problem. but after running above steps, i am
leaving the explorer open. then i am opening new explorer and running
directly the second php script. this script displays the values stored
in session variables. should this happen????????
according to me this should not happen because session is related with
opened browser window and not with browser.
guide me regarding this........
thxs for help in advance
It's a confusing subject. As Daniel pointed out, session cookies are shared
between IE windows if they belong to the same IE process. An IE windows
opened from/by another IE window is owned by the process of that window.
There are a number of way where this happens:
1) File > New > Window
2) Right click > Open in new window
3) target attribute in anchor and form tags
4) javascript open()
Browser windows that are opened from the start menu, the task bar, or by
double clicking on iexplore.exe, are owned by different processes, so they
do not share session cookies. The exception to that is when the computer has
less than 32meg of RAM, in which case there's always only one instance of
IE.
Persistent cookies are always shared between browser windows, provided that
the domain name matches.