I figured it out:
register_globals was set to "on" on the new server and was "off" on the old server.
http://us2.php.net/registe
That is a nasty, nasty config option I had no idea about.
Basically, I would set the $_SESSION["userid"] when a user logged in and when I set the page variable $userid, it would also change the session variable.
That is some crazy behavior and I don't know why anyone would want it enabled.
Main Topics
Browse All Topics





by: mrcoffee365Posted on 2008-02-27 at 13:05:37ID: 20998386
Name changes and hosting changes can make cookies disappear, for example if they aren't returned to the new server because network routing hasn't propagated completely yet.
What they can't do is make your code behave differently, or change the data in a cookie.
So -- something is different.
Are you _sure_ that your click of a different user causes the change in your cookie data? There could be 2 different cookies, for the 2 domains, and sometimes you see one, and sometimes the other.
Or your code on the server could be behaving differently, even though you can't find where that's happening.
If you post the before and after cookies, then we might be able to help with further debugging. That is, the cookie that has one value from one browser from one machine, you click on a link on a page on that machine, and the cookie has a different value.