Hi,
I just build a login program.I hope only one people can login in using one user name.after the people login.other people can not login with the same user name.do you know how to do that?
Please give me idea or URLs.
Thanks
probably the easiest way is to have a page check if someone is logged in (in the backend via a session or something of that sort) and then if it is set a flag in the db to on and then if someone wants to log in with that username the flag on will not allow them to login, then when the session dies the flag can be set to off and allow them to log in again
How to change flag in DB when the session dies .
have that behind the scenes check for the session, if it doesn't exist set flag to off