ARTICLE AD BOX
I have a number of websites running under a single domain as www.sub1.domain,org, www.sub2.domain.org, ... They use some common code and that in effect resides in the parent domain. At logon some values are placed in the array $_SESSION["site_data"][..] via an include which is only in the initial logon page. Other values are also placed into $_SESSION as a result of a successful logon. All this is done at the site domain level (sub1.domain). I then have a help facility which accesses some common help files at the domain level. For various reasons those common files are accessed via a php script. As soon as I change to the main domain, the session ID changes and the S_SESSION variables are supposedly cleared. I now realise that I can not operate in this mode changing between domains and retain the $_SESSION variables, but what has me puzzled is that not all the $_SESSION values are cleared, which initially had me thinking that values could be retained and that I was doing something else wrong. Three values at the $_SESSION["site_data"] level retain their values and it always seem to be the same keys, irrespective of what other keys I have. Is this just a peculiar bug in php?
