Session Warning Message

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Session Warning Message

    I'm attempting to complete a new project for myself, no money in this one at
    all, just a sense of accomplishment. Part of this new thing requires that
    you log in to do add, update, or delete anything. I'm having a weird issue
    with the log in part that I hadn't seen before.

    When I go to log in I get this warning message:

    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 understand what it's telling me, but I've dug, scrounged, and rooted
    around in the page(s) that have this warning in them and can't find
    anything that I would think would cause this message. Nothing is relying
    on global variables.

    I've done as it said, turned off the bug_compat stuff and that completely
    broke the log in facility. It didn't work at all!

    I'm stumped. In need of some help on this one. I've put the source for the
    log in page out on my web site. If anyone can help me it would be very
    much appreciated.

    [url]http://barrelofmonkeys.sytes.net/loginProcess.phps[/url]


    Thanks in advance.
    Mike Discenza Guest

  2. Similar Questions and Discussions

    1. Warning Message Pop-Up - Acrobat PRO
      Before we upgrade to Acrobat PRO, we would like to know if the option exists in the set actions menu for a button, to query the user to confirm their...
    2. warning message (alert)
      Hi, I want to create the alert message ' You are about to over writte the acct, do you wish to continue?'). I need two buttons here, YES/ NO. If...
    3. Please, once & for all, Explain the Warning message!
      I'm sorry, but I'm having problems with the horrible message that means nothing to me. LOL Warning: No pixels are more than 50% selected. The...
    4. Help with Warning Message please
      I have to tell someone - Photoshop has to be the worst piece of Software in my computer as far as User Friendly goes... It's not going back in it's...
    5. Warning Message
      Hi Everyone, I'll explain what I'm doing first. At the moment, I am doing a record search via a form. I like to know if it's possible to display...
  3. #2

    Default Re: Session Warning Message

    Mike Discenza wrote:
    > I understand what it's telling me, but I've dug, scrounged, and rooted
    > around in the page(s) that have this warning in them and can't find
    > anything that I would think would cause this message. Nothing is
    > relying on global variables.
    >
    register_globals is a directive in php.ini which enables you to use code
    like:

    session_register('ownerID');
    $ownerID = $row['ID'];

    To fix this, you can either enable register_globals, or simply replace the
    previous two lines with the following:

    $_SESSION['ownerID'] = $row['ID'];


    JW



    Janwillem Borleffs Guest

  4. #3

    Default Re: Session Warning Message

    Janwillem Borleffs wrote:
    > Mike Discenza wrote:
    >> I understand what it's telling me, but I've dug, scrounged, and rooted
    >> around in the page(s) that have this warning in them and can't find
    >> anything that I would think would cause this message. Nothing is
    >> relying on global variables.
    >>
    >
    > register_globals is a directive in php.ini which enables you to use code
    > like:
    >
    > session_register('ownerID');
    > $ownerID = $row['ID'];
    >
    > To fix this, you can either enable register_globals, or simply replace the
    > previous two lines with the following:
    >
    > $_SESSION['ownerID'] = $row['ID'];
    >
    >
    > JW
    Many thanks. Since I'm trying to avoid using globals, I'll take your advice
    of changing how I'm sticking variables in the session.


    Mike Discenza Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139