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

V@no.

12-28-2003, 09:27 AM

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

firepages

12-28-2003, 05:07 PM

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

alaios

12-29-2003, 08:11 AM

telle me about this "uthenticating purely against a username"

Celtboy

12-29-2003, 09:01 PM

in the username/password database, add a field called "logged_in."

When a user attempts to login:

if good username & good password:

me'

12-29-2003, 10:59 PM

Originally posted by alaios
telle me about this "uthenticating purely against a username" just requiring a valid username to login, no password. Extremely unsecure.

missing-score

12-29-2003, 11:16 PM

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?

dniwebdesign

12-31-2003, 12:26 AM

You could set it up so a small window pops up (using the same sessions on all the pages) which could reset the database value.

missing-score

12-31-2003, 12:39 AM

thats ok unless they have popups/javascript disabled.

alaios

01-03-2004, 09:39 PM

You could set it up so a small window pops up (using the same sessions on all the pages) which could reset the database value.