The code provided for altering the ini directive *should* be done at
runtime, as each hosted domain isn't going to have the same needs. This
would make no sense if it were done at the root level. And this can be
designed to be ambiguous.. meaning that it can update itself to fill the
need whenever this situation presents itself in the future. And should in
theory correct the problem of new session id initiation. So this would
eliminate the need for any configuration changes at the admin level,
provided that the same installation of PHP is running both the secure and
non-secure sites thereby transcending different IP addresses and even
completely different sites all-together, the non secure domain and
subdomains can be designed to share session with the central SSL. To make
it truly ambiguous I would suggest plugging in a $_SERVER or $_ENV variable
that contains only the domain and suffix, which would allow the SSL to
accept refering sessions from either the non secure domain or its
sub-domains in any situation where there is the need to transfer the session
from one of these to the SSL domain.
Essentially you are saying to the server, allow this referring url to be one
in the same with the current as far as sessions go. And this is a tiny
amount of code and effort when compared to the alternative, creating a
custom session handler. Which in my mind I would see as the only other
solution, without serious changes to how the system is set-up.
Also, just in case there were any misunderstandings as to what ini_set()
does, this change is not permanent. It only alters the ini setting for the
lifetime of the script. So this function does not actually change
configuration in the ini file.
After looking over your responses again I was wondering if that thought had
crossed your mind.
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::