ruski Posted May 27, 2010 Share Posted May 27, 2010 Dear Friends, I have a problem where a user's session variable "user_id" changes to another "user_id" in the same office. This happens on a random occasion from what I can see. However the user which the id changes to isn't always in the office and logged in at the same time. For example it happened today and that user is actually on holiday at the moment. Our office runs SBS 2003 but we don't use any proxies. setup: office pcs(30+) > netgear switch > cyberoam hardware firewall > vigor router & modem > ISP > our site on a VDS Any ideas what could be causing this? thanks Quote Link to comment https://forums.phpfreaks.com/topic/203091-sessions-problem/ Share on other sites More sharing options...
GetPutDelete Posted May 27, 2010 Share Posted May 27, 2010 I don't think it has to do with your network as temp sessions are stored locally, I'd check your code. Quote Link to comment https://forums.phpfreaks.com/topic/203091-sessions-problem/#findComment-1064155 Share on other sites More sharing options...
PFMaBiSmAd Posted May 27, 2010 Share Posted May 27, 2010 Your code probably has a logic error in it that is assigning a value instead of comparing a value (i.e using one = instead two == in a comparison.) You might also have a header redirect without an exit; statement after it and the code on the rest of the page is setting or changing the value. You might also be using your own session save handler and it contains an error or makes an assumption about values. You could also have register_globals on and same name post/get/cookie/program variable is overwriting your session variable. Without specific information about the code that exhibits the problem, it is just a guessing game as to what is causing it. Quote Link to comment https://forums.phpfreaks.com/topic/203091-sessions-problem/#findComment-1064156 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.