473,468 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

single connection per user on platform

20 New Member
Hello all!

I am working on a platform and there is a restricted area when users need to login. The issue is that multiple users can login with the same username/password at the same time which I don't like. I want when a user logs in no other person to be able to log in the system with the same username/password. Is there a way I can implement that on the server? I have tried to implement the operation with php but it does not work right. I would highly appreciate any help.

Thank you
Theoni
Jul 9 '08 #1
8 1281
r035198x
13,262 MVP
What have you tried that did not work right?
Jul 15 '08 #2
theoni
20 New Member
What have you tried that did not work right?
yes, there is no way to catch the user closing the browser. I have tried with javascript but it didn't work.

theoni
Jul 15 '08 #3
r035198x
13,262 MVP
You have several options that you can use to indicate that a user is logged it. Create a table for logged in users, or just add a logged in flag to your users table.
Jul 16 '08 #4
theoni
20 New Member
You have several options that you can use to indicate that a user is logged it. Create a table for logged in users, or just add a logged in flag to your users table.
how can I catch the closing browser it is not working with javascript
Jul 21 '08 #5
r035198x
13,262 MVP
how can I catch the closing browser it is not working with javascript
You tried firing an AJAX request when the page is closed?
Jul 21 '08 #6
theoni
20 New Member
You tried firing an AJAX request when the page is closed?
yes that is how i tried to implement it.
Jul 22 '08 #7
r035198x
13,262 MVP
yes that is how i tried to implement it.
Then you need to post the relevant parts of your code and explain where it fails.

P.S I'll now move this to the Javascript/AJAX forum.
Jul 22 '08 #8
rnd me
427 Recognized Expert Contributor
time the user out after 5 mins, allow cookies to maintain state, and prevent double login on the server using a persistent object, or even a csv file of active users or something.
Jul 23 '08 #9

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

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
2
by: meng | last post by:
is it possible to use a single connection object shared by several tasks where each task is handled by a thread? these tasks call stored procedures that return record sets, no editing, update or...
2
by: DMS | last post by:
am new to ASP.NET and IIS web applications, but not to SQL databases. I can successfully build Windows apps using Visual Studio that use ADO. However, for Web Forms, I created data connection and...
4
by: DG | last post by:
Hi, Can anyone advise how to execute multiple statements in a single query batch. For example- update customers set customer_name = 'Smith' where customer_name = 'Smyth'; select * from...
0
by: Twan Kennis | last post by:
Hello! I do have the following problem: I've developed a Windows application which communicates with a DB2-database on the iSeries platform using an ODBC-connection string. This...
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
5
by: velu5 | last post by:
Hello , Is it possible/recommended to do SQL server instance backups in Single user mode ? Thanks in advance, atv
2
by: theoni | last post by:
Hello all! I have asked the question at the apache forum but I have gotten no replies so I need to ask someone here in case you know how I can solve the following problem: I am working on a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.