Hi. Take a look at my problem. I have a log in menu that users use it in order to authenticate. If he is registered then i create a new session from him. The problem is that if another user tries to log in with the same user name, then it wil be logged in succesfully!!! I only want to log out the first user
as in your previous post, u probably will need store your user's sessions in the database or in the file.
ofcourse unless I'm missing some php features
I do not get it ? either you are allowing the same username to be used more than once or you are authenticating purely against a username ? both bad ideas
MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
Originally posted by Celtboy in the username/password database, add a field called "logged_in."
When a user attempts to login:
if good username & good password:
The logged_in field is ok, but what happens if the user suddenly shuts down their browser. Next time they come back they would still be logged in in the db, and then not be able to login?