Ask a Question related to PHP Development, Design and Development.
-
Mike Discenza #1
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
-
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... -
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... -
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... -
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... -
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... -
Janwillem Borleffs #2
Re: Session Warning Message
Mike Discenza wrote:
register_globals is a directive in php.ini which enables you to use code> 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.
>
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
-
Mike Discenza #3
Re: Session Warning Message
Janwillem Borleffs wrote:
Many thanks. Since I'm trying to avoid using globals, I'll take your advice> 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
of changing how I'm sticking variables in the session.
Mike Discenza Guest



Reply With Quote

