By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,599 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,599 IT Pros & Developers. It's quick & easy.

single connection per user on platform

P: 20
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
Share this Question
Share on Google+
8 Replies


10K+
P: 13,264
What have you tried that did not work right?
Jul 15 '08 #2

P: 20
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

10K+
P: 13,264
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

P: 20
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

10K+
P: 13,264
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

P: 20
You tried firing an AJAX request when the page is closed?
yes that is how i tried to implement it.
Jul 22 '08 #7

10K+
P: 13,264
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
Expert 100+
P: 427
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

Post your reply

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