I'm using php with global_register=On and I wrote:
function set_session($ParamName, $ParamValue)
{
global ${$ParamName};
if(session_is_registered($ParamName))
session_unregister($ParamName);
else
{
${$ParamName} = $ParamValue;
session_register($ParamName);
}
}
and then I can use $ParamName with value was set by function set_session. But now I don't want to use global_register=On for security reason. How do I write with result is similar to using set_session function?