$_session error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    $_session error

    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 got this error becuase i am using global variable with mysession. pls do any body know the solution to that error warn,

    NOTE: ONLY REPLY IF THIS AS HAPPEN TO YOU BEFORE,
    have connected with http://adexchat.com ?
    Fun up with
    http://forum.adexchat.com

    #2
    I had this error before. simply put this in your script
    PHP Code:
    ini_set("display_errors"0); 
    it will work anyway

    PHP Code:
    foreach ($_SERVER as $server => $value)
    {
    echo 
    "$server is $value<br />";

    Comment


      #3
      Happened to me, but I can't remember what happened. Please post the line and ill remember what I did.
      Best not to ignore deprecated warnings
      Perfection comes at a cost



      I accept liberty!

      Comment


        #4
        I have solve this alread! I only paste this here. To discussion on it. Because when i search google for it. I saw many forum with no solution for it.
        have connected with http://adexchat.com ?
        Fun up with
        http://forum.adexchat.com

        Comment


          #5
          I did some research.

          If you try to assign a session var in a function, make sure the variable you are trying to assign to it is not unset. Make sure it is available in the functions scope.

          Added after 11 minutes:

          It seems this happens when you try to assign a variable which doesn't exist to the session.
          Last edited by frostymarvelous; 01.03.11, 22:07.
          Perfection comes at a cost



          I accept liberty!

          Comment

          Working...
          X