] [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 9:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] trikky authentication question
hi guys i have an authentication class , there is one last big issue to
fix , i am trying to prevent multiple logins , it does this ok except , the
first login gets
hi guys i have an authentication class , there is one last big issue to
fix , i am trying to prevent multiple logins , it does this ok except , the
first login gets kicked instead of the second one , i have a last_login
date entry to work with , what else should i have so on the login check if
the
.$MyIdleTime. seconds without saying
anything ;);
}
}
volker
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 4:11 AM
Subject: [PHP] trikky authentication question
hi guys i have an authentication class , there is one last big issue to
fix
AM
Subject: [PHP] trikky authentication question
hi guys i have an authentication class , there is one last big issue
to fix , i am trying to prevent multiple logins , it does this ok
except ,
the
first login gets kicked instead of the second one , i have a
last_login date entry to work
hi guys i have an authentication class , there is one last big issue
to
fix , i am trying to prevent multiple logins , it does this ok except
,
the
first login gets kicked instead of the second one , i have a
last_login
date entry to work with , what else should i have so on the login
check
What if I accidentally close my browser and come back to log
in? The system will not let me because I'm still logged_in until X
minutes pass. Also with this method, you need to keep track of these
attempted log ins and somehow alert the first user.
good question i'm checking this out atm :|
at the login window and
log them out if reached - before logging in
volker
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 5:06 AM
Subject: RE: [PHP] trikky authentication question
What if I
PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 5:06 AM
Subject: RE: [PHP] trikky authentication question
What if I accidentally close my browser and come back to log
in? The system will not let me because I'm still logged_in until X
minutes pass. Also with this method, you need to keep
for me these few line are working well, user cannot login before
max-idletime is reached (i check the list every time an action is
taken
on the board, if no user is online, i cant login forever and have to
connect
as another user first ;)
And you call that a viable solution? That's
wots the best solution then ??
SELECT username FROM users WHERE logged_in=0 AND username='.$this-post
['username'].'
thats my current one but yes i get blocked out , what else can i add to it ?
And you call that a viable solution? That's ridiculous.
--
PHP General Mailing List
ok here is the latest sql query
SELECT username FROM users WHERE (logged_in=0 OR (NOW()-last_login) 300
AND username='.$this-post['username'].'
there is the idle time added but what after the idle time they log bak in
and then kiks the first login out ? there must be a better solution ??
ok well i just noticed my sql statement is a bit flakey as its not a true
idle time to get a true idle i'd have to keep a record of the time every
request to the pages when logged in, this is checking when they lasted
logged in so the user may still be logged in 300 seconds later , this isnt
i said that before!
just a hint to think offany questions?
volker
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Volker Augustin' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 5:48 AM
Subject: RE: [PHP] trikky
how can i get this to work ??
if (connection_aborted()) $this-db-query(UPDATE users SET logged_in=0
WHERE userID=$this-userID);
ok well i just noticed my sql statement is a bit flakey as its not a
true idle time to get a true idle i'd have to keep a record of the time
every request to the
-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 5:46 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: connection_aborted was [PHP] trikky
authentication question
On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote:
how can i get this to work
15 matches
Mail list logo