Login Problem!!!

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
:help:

i would like to create a login method where the same user cannot login twice whether is on the same computer or in different computer

pls reply me as soon as possible, coz i am in a urgent!!!
thanks
 
please save the user's name in the dB when he logs in
and on the login page check if he has logged in, if has logged, disallow him
 
Note that preventing a user from logging in twice on the same computer is essentially impossible. Multiple browser windows/tabs use the same connection and the same set of cookies, and your server will have no way to tell them apart. Fortunately for you, it probably doesn't make any difference.
 
ruturajv said:
please save the user's name in the dB when he logs in
and on the login page check if he has logged in, if has logged, disallow him

if the users tries to close the browser. the DB cannot update and the users will not be able to login.So and ideas
 
Back
Top