hassank1 Posted April 8, 2009 Share Posted April 8, 2009 Ok I spend days and days trying to fix a bug in my application... offline it's working ok .. but online the page behave unexpectedly ... so then accidently I've figured out that the value of a session is changed .. for example I've a session --> $_SESSION[iD] so whenever I set a variable .. $ID = 5 ... automatically $_SESSION[iD] become 5 .. I mean that's weird .. it's not happening offline.. so what's that exactly ? and could it be disabled? thx Link to comment https://forums.phpfreaks.com/topic/153235-_sessionid-id/ Share on other sites More sharing options...
redarrow Posted April 8, 2009 Share Posted April 8, 2009 what $_SESSION[id] it suppose to be >>> $_SESSION['id'] Link to comment https://forums.phpfreaks.com/topic/153235-_sessionid-id/#findComment-804977 Share on other sites More sharing options...
kenrbnsn Posted April 8, 2009 Share Posted April 8, 2009 It sounds like your script is running on a server that still has register_globals enabled. Ken Link to comment https://forums.phpfreaks.com/topic/153235-_sessionid-id/#findComment-805000 Share on other sites More sharing options...
schilly Posted April 8, 2009 Share Posted April 8, 2009 ya thats sounds right. Link to comment https://forums.phpfreaks.com/topic/153235-_sessionid-id/#findComment-805017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.