generic79 Posted July 1, 2013 Share Posted July 1, 2013 Hi all, I'm having this problem.. Sorry that if there is some one already post this top before... But I couldn't found 1 here or any other forum as well. My problem is this, eg: I'm using chrome browser to login using session. but when I'm using other browsers like firefox or IE. session appeared as well.... How can I do so that session value stored using 1 browser, other browser will not appear this value. Thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/279758-session-appears-in-all-browsers/ Share on other sites More sharing options...
mac_gyver Posted July 1, 2013 Share Posted July 1, 2013 about the only ways this could be occurring are - 1) you are passing the session id (SID) in the url and you copy/pasted the url into the second browser, or 2) your code contains a logical error that is unconditionally setting the session data, so every session gets that data in it. how do you know (what exactly was the symptom/result) that a different browser gets a session that was started in some other browser and what is your code that reproduces this problem? Quote Link to comment https://forums.phpfreaks.com/topic/279758-session-appears-in-all-browsers/#findComment-1438836 Share on other sites More sharing options...
generic79 Posted July 1, 2013 Author Share Posted July 1, 2013 mac_gyver, thank you for your advice! It solve my problems!!! Thx! Quote Link to comment https://forums.phpfreaks.com/topic/279758-session-appears-in-all-browsers/#findComment-1438866 Share on other sites More sharing options...
generic79 Posted July 2, 2013 Author Share Posted July 2, 2013 Hi mac_gyver, I noticed something wierd happenned here... after I stored the session using google chrome browser, at the same time using firefox to recall the session value, it appears. but at the same time, it doesn't shows when I'm using IE to call the session value. any reason causes this problem? Anyone knows any reason causes this happen? Quote Link to comment https://forums.phpfreaks.com/topic/279758-session-appears-in-all-browsers/#findComment-1439000 Share on other sites More sharing options...
mac_gyver Posted July 2, 2013 Share Posted July 2, 2013 without your code that reproduces this problem, its not really possible to help. you would also need to tell us what session variable in your code you are talking about and what symptom you observed that leads you to believe accessing a page using two different browsers is getting the same session value. also, which of my suggestions in post #2 had something to do with the previous login problem, because your current symptom is likely more of the same type of error in your code. you need to A) provide feedback on what was causing the previous problem and what you did to correct it and B) all the information you have about what you are even talking about in your last post. Quote Link to comment https://forums.phpfreaks.com/topic/279758-session-appears-in-all-browsers/#findComment-1439032 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.