RE: [PHP] trikky authentication question

2003-06-02 Thread PHP4 Emailer
] [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

[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

Re: [PHP] trikky authentication question

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

Re: [PHP] trikky authentication question

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

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 check

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 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 authentication question What if I

Re: [PHP] trikky authentication question

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

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
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 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
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

RE: [PHP] trikky authentication question

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

[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 the

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

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