Solved

Login from one ip

Posted on 2007-11-26
3
162 Views
Last Modified: 2008-02-01
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?
0
Comment
Question by:leventsatriani
3 Comments
 
LVL 21

Expert Comment

by:nizsmo
ID: 20355524
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
 

Author Comment

by:leventsatriani
ID: 20355754
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
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 50 total points
ID: 20356081
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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now