Daniel,
What about using IP Logging? If the user is already logged in with the same
IP you can let them on, if its a new IP you could ask them if they are a
returning user? If so, make them log in a second time for verification, and
close the other logged in user/account.
Make some fancy "It appea
IL PROTECTED]>
> Sent: Sunday, June 01, 2003 5:48 AM
> Subject: RE: [PHP] trikky authentication question
>
>
> > > 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
> >
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
reall
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 ??
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 (
> 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
AIL 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 accidentally close my browser and come back to log
>>
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 authenti
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 :
> 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
che
doh silly me , i'll have to set a logged out flag , will help me in the
long run :D thanks dude
> hi,
> this is only a very fast response :))
> is solved this kind of problem like that:
> (quick solution for a chatboard - user cannot login for x seconds -
> maxidletime)
> /***two funct
hi,
this is only a very fast response :))
is solved this kind of problem like that:
(quick solution for a chatboard - user cannot login for x seconds -
maxidletime)
/***two functions:**/
function logoutMsgBoardUser($UserName)
global $MessageBoardTable,$SiteID;
$DB=ne
12 matches
Mail list logo