Beta1.0 Posted October 4, 2007 Share Posted October 4, 2007 Hi to all, I have created a login system which passes the user name as a session variable. After the user has logged in to the site, I open another tab or window and login as another user. Then I go back to the first window and refresh the page, this causes the user variable to change to the second user name. How can I fix this problem? Thank you, Beta1.0. Quote Link to comment https://forums.phpfreaks.com/topic/71843-solved-session-conflict/ Share on other sites More sharing options...
trq Posted October 4, 2007 Share Posted October 4, 2007 You can't. If you open a new browser you wont get the same effect. One thing you could do would be to prevent muliple people logging in from the same ip at the same time but this would cause problems with users on large lans. Quote Link to comment https://forums.phpfreaks.com/topic/71843-solved-session-conflict/#findComment-361863 Share on other sites More sharing options...
Beta1.0 Posted October 4, 2007 Author Share Posted October 4, 2007 Thank you for your fast response. I have opened a second window ( I am doing this in firefox ) and logged-in as another user and then went to the first window and refreshed the page. I get the same effect, where the user name of the first window changed to the username of the second person that logged-in. But this does not matter anymore, you are right. I first thought that gmail works the way I want it to work, but now I see that it only lets one computer to access one account at a time. How will it cause problems if I start blocking ip addresses? Thank you, Beta1.0. Quote Link to comment https://forums.phpfreaks.com/topic/71843-solved-session-conflict/#findComment-361872 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.