...

View Full Version : 1 profile n logins



alaios
12-28-2003, 07:46 AM
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, 08: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, 04: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, 07:11 AM
telle me about this "uthenticating purely against a username"

Celtboy
12-29-2003, 08: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, 09: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, 10: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-30-2003, 11:26 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.

missing-score
12-30-2003, 11:39 PM
thats ok unless they have popups/javascript disabled.

alaios
01-03-2004, 08: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.


can u explain that? What the pop up window will provide?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum