Page 1 of 1

I wondered!

Posted: Mon Feb 11, 2008 4:43 am
by persiangulf
hi,
I use a general php file in all of my projects(that I included general functions in it) and the last time I used it sometimes in some scripts I get this warning :

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

The thing that wonder me is that after refreshing the script this warning disappear

Re: I wondered!

Posted: Mon Feb 11, 2008 10:24 am
by Christopher
What does your code look like? Can you post it?

Re: I wondered!

Posted: Mon Feb 11, 2008 1:44 pm
by persiangulf
Thanks,after dealing with the code I understood where the problem comes from.The problem was that I used cookies before initializing it.

Re: I wondered!

Posted: Mon Feb 11, 2008 1:48 pm
by RobertGonzalez
Thanks for posting that warning message. I have never seen that before.