Possible Duplicate:
PHP session side-effect warning with global variables as a source of data
I am getting following warning from php
Warning: Unknown: Your script possibly relies on a session side-effect
which existed until
PHP 4.2.3. Please be advised that the session extension does not
consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality
and this warning by setting session.bug_compat_42 or
session.bug_compat_warn to off, respectively in Unknown on line 0
I believe the following codes created the warning.
$name=$_SESSION['name'];
$emails=$_SESSION['email'];
$_SESSION['info']=array_intersect($name, $emails);
I have no access to php.ini
nor server. I can only change my codes.
Are there anyways to remove the warning?