RE: [PHP] trikky authentication question

2003-06-02 Thread PHP4 Emailer
avid -Original Message- From: [EMAIL PROTECTED] [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

RE: [PHP] RE: connection_aborted was [PHP] trikky authentication question

2003-06-01 Thread electroteque
---Original Message- 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

[PHP] RE: connection_aborted was [PHP] trikky authentication question

2003-06-01 Thread daniel
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

RE: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
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 > >

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
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

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
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 ??

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
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 (

RE: [PHP] trikky authentication question

2003-06-01 Thread John W. Holmes
> 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

Re: [PHP] trikky authentication question

2003-06-01 Thread daniel
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 >>

Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
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

RE: [PHP] trikky authentication question

2003-06-01 Thread daniel
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 :

RE: [PHP] trikky authentication question

2003-06-01 Thread John W. Holmes
> 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

Re: [PHP] trikky authentication question

2003-06-01 Thread daniel
all**/ > if ($msglogin=='1') { > $newMessage=" entered the Messageboard"; > if (getMsgBoardUserIdleTime($MName) >0) { > echo "Eine User mit diesem Namen ist bereits Online, bitte waehle > einen > anderen..."; > $logged_out=true; >

Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
;) { $newMessage=" entered the Messageboard"; if (getMsgBoardUserIdleTime($MName) >0) { echo "Eine User mit diesem Namen ist bereits Online, bitte waehle einen anderen..."; $logged_out=true; $MName=""; } } if (isset($MName) && $MName!="") {

[PHP] trikky authentication question

2003-06-01 Thread daniel
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