ether Posted July 5, 2007 Share Posted July 5, 2007 I have a website and two servers. A production server (PHP4) and a development (PHP5) server. Now, my code utilizes sessions for the users login and works flawlessly on both servers. I've just introduced a PM system and some AJAX functions (using jQuery). However, when I open a PM on the _production server_ for some reason my $_SESSION['username'] gets OVERWRITTEN by the name of the person who sent the PM. I cant work out for the love of god why it's doing it. It works perfectly on the development server so it has to be a PHP config. option or something, right? Somebody please help me.. Cheers, eth0. Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 5, 2007 Share Posted July 5, 2007 replace username to another name or if that doesnt sounds good show me piece of that code Quote Link to comment Share on other sites More sharing options...
ether Posted July 6, 2007 Author Share Posted July 6, 2007 As a final restort, I updated PHP on the production server to PHP5 and now it works. It must of been PHP4. Not quite sure why it was doing it. Thanks anyway guys. 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.