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. Link to comment https://forums.phpfreaks.com/topic/58633-solved-_really_-weird-session-problem/ 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 Link to comment https://forums.phpfreaks.com/topic/58633-solved-_really_-weird-session-problem/#findComment-290863 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. Link to comment https://forums.phpfreaks.com/topic/58633-solved-_really_-weird-session-problem/#findComment-290887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.