NOO!! session.bug_compat_42

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

NOO!! session.bug_compat_42

Post by Skara »

:cry: This is just stupid.
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
... Ok, so I turned both of them off. Restarted my server... IT STILL DOES IT! I have no idea what the hell this means, but I turned it off. Only it didn't turn off :!: :!:
... :evil:
I've googled and googled and I've found a few places that say something about it, but no solutions. It says "warning," but it's pretty much fatal since it doesn't do anything. I should be logged in and taken to another page, but I'm not. It gives that warning and finishes the original page again.
My code is basically like this..

Code: Select all

session_start();
if (isset($_POST['user'])) $_SESSION['user'] = $_POST['user'];
if (isset($_SESSION['user']) && ...) $something = $_SESSION['user'];
//and so on.  nothing outdated, nothing screwey.
Post Reply