Solved

Login from one ip

Posted on 2007-11-26
3
163 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

920 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

16 Experts available now in Live!

Get 1:1 Help Now