473,394 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

registration and log in system. Preventing multiple log in at the same time

I am quite new to php and database. I have made some progress over the days as i try to implement something i have on my mind. I wish to create a register and log in system for my personal site.I have watched so many online videos to do that and i am faced with a problem What i wish to implement is when a registered user logs in,lets say at home and goes to work to log in with his office pc using the same user name and password, i wish to have that user logged out automatically from his pc at home as he tries to log in with his office pc. at this moment i am setting things on my localhost and hope to find a solutions before taking it online. Will i be able to achieve this with if i create sessions in the data base?. How do i go about it? Please help Thanks
Your reply will be very much apprieciated

I dont mind sharing what codes i have written as a beginner.
Jul 4 '14 #1
1 1201
Dormilich
8,658 Expert Mod 8TB
the only thing I can imagine that could do that would be having a browser-based client (a web app) that connects to the server via sockets and not via HTTP.

if you wanted to use HTTP, you could check the IP of the user and decline any request coming not from the latest IP. beware though that this may not work for computer on the same LAN and you might get problems if the user gets his dynamic IP reassigned.

besides that, in a web environment you do not log in a specific client (browser) but identify yourself to a server (i.e. if a request provides the correct credentials (either a user-password combination or some specific token (e.g. a session cookie)) the request is treated as part of the session). where this request comes from is irrelevant to the server (although your application may care about such details).

tl;dr HTTP-wise you cannot log out a user from a specific computer because HTTP does not have persistent connections (you have to log in for each request you make) that’s why it is a stateless protocol
Jul 5 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
1
by: mridulmurari | last post by:
Hey. I need help with a certain problem I'm facing in VB6. I need to display the contents of multiple items in a listview. The situation is this : Everytime i double-click on an item in a...
2
jeffbroodwar
by: jeffbroodwar | last post by:
Hi all ! I'm currently working on a project that involves webservices..... the problem is with my database, i can't make it process two rs.updates at the same time. it throws an...
2
by: sheaguevara | last post by:
This is my first post onto the forum. So first off, I'd like to say hello to everyone. I just started working on a login/registration system and I am trying to have a feature where the user will...
1
by: visitram | last post by:
I am a newbie to Ruby and wondering how to insert multiple records at the same time. I want to create a form such that it accept multiple records and save it to DB upon submitting the form...
2
by: whitethomas12 | last post by:
Hi, I currently have some basic code that allows me to run the tracert command through VB.NET and it also updates my database based on the results. I was wondering if someone can help me...
0
by: andrewst | last post by:
Originally posted by Taijixp Ask your teacher for help. -- Posted via http://dbforums.com
2
by: cryogeneric | last post by:
Hello everyone, I've developed an ASP classic program that allows users to view PDF reports. Currently, users can click on a PDF and print it, however, I need to find a way to allow them to select...
0
by: metalheadstorm | last post by:
I have a tcp client - server implementation running in the same program, on different background worker threads. There will be instances of this program on multiple computers so they can send and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.