gevensen Posted April 25, 2012 Share Posted April 25, 2012 I just got through a server problem with a variable named $_SESSION['id'] What would happen was when I loaded a mysql request with id in it (usually what i name the main key in a table) it would overwrite the value in the $_SESSION without specifically asking it to ie $_SESSION['id']=$id; This was on an acenet server I have the same thing on a bluehost server and wampserver and never had a problem What I did on acenet was rename $_SESSION['id'] when declaring it to $_SESSION['usernumber'] and all my issues stopped Anyone know why? Is it a acenet problem? My problem is fixed im just wondering if anyone has had a similar issue????? Quote Link to comment Share on other sites More sharing options...
xyph Posted April 25, 2012 Share Posted April 25, 2012 Probably the register_globals setting. http://php.net/manual/en/security.globals.php Quote Link to comment Share on other sites More sharing options...
cpd Posted April 25, 2012 Share Posted April 25, 2012 I'm assuming you mean the company Acenet? They use an Apache web server so you could cross reference the php ini on each web server and see if anything.s different. If not its likely to be your code. Quote Link to comment Share on other sites More sharing options...
gevensen Posted April 25, 2012 Author Share Posted April 25, 2012 no i went thru it with a fine tooth comb so to speak I was definately not resetting the session This drove me nuts for about 2 months I finally had the time today to sit down and track it down The crazy thing was not everyone was affected. I shared the desktop of a person in Oklahoma and watched them go thru it a few min ago and it seems to be working perfect now This person was having major issues Go figure.... Quote Link to comment Share on other sites More sharing options...
gevensen Posted May 3, 2012 Author Share Posted May 3, 2012 the server they are leasing as register global on, that was the issue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.