Login from one ip

Hi all!
I've built a login system for my page, but multiple users can login to the system from different computers at the same time. I want to restrict this, any ideas?
leventsatrianiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Loganathan NatarajanConnect With a Mentor LAMP DeveloperCommented:
it could be done in best using creating a session id for each user login and identify which user logged in.... infact you can restrict based on the session expiry and etc.,
0
 
nizsmoDeveloperCommented:
You can implement it so that there is a time-out field in your database corresponding to the login, and if the user who is logged in is active, then the timeout field will get updated always, and if a new user wants to login, but the other is still active (checked against the timeout field) then the login would be declined.

Hope this helps give you some concepts on how to go about it.
0
 
leventsatrianiAuthor Commented:
i don't want to check for inactivity or smt else

what i want is, if a session is opened from one computer with a username, the other login attemps should be declined, till the user closes the browser, or logouts.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.