Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Login from one ip

Posted on 2007-11-26
3
Medium Priority
?
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 150 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

604 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