squiblo Posted November 16, 2009 Share Posted November 16, 2009 this is a very general question, how is more than one login by a user on different computers or different web browsers prevented? is it possible if using sessions? what methods and functions are used? etc etc Quote Link to comment https://forums.phpfreaks.com/topic/181761-solved-session-logins/ Share on other sites More sharing options...
squiblo Posted November 16, 2009 Author Share Posted November 16, 2009 i came up with a little something that works well and is very simple, i created a field in my db called "loggedin" when the user logs in the field value for that user changes to 'yes' and when the user logs out the the value is changed to 'no'. and in the login script it checks for the value of the field and if it is 'yes' then "die('this user is already logged in')" but if not then it continues with the rest of the script Quote Link to comment https://forums.phpfreaks.com/topic/181761-solved-session-logins/#findComment-958638 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.