Menu

#440 Session Side-Effect Warning

closed-fixed
Interface (75)
5
2011-02-24
2011-02-24
360team.ca
No

After performing a company search in /companies/some.php, if the user clicks 'New Company', the following warning appears at the bottom of /companies/new.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

Discussion

  • 360team.ca

    360team.ca - 2011-02-24

    The problem was actually caused by the arr_vars_session_set() function in utils-misc.php. Wholesale assignment of values led to some unset values being assigned to the $_SESSION extension which triggered the warning. All good now :)

     
  • 360team.ca

    360team.ca - 2011-02-24
    • status: open --> closed-fixed
     

Log in to post a comment.