Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: when user doesn't click log out button


Message #1 by "zyafzan" <zyafzan@s...> on Tue, 7 Jan 2003 03:47:47
hello...

when user log into my system, i use sql statement to insert the user's 
status as 'login' in the database. User must click the button 'log out' to 
update their field status to 'logout'. But when my  user just exit the 
browser without clicking the 'logout' button the status in the field 
remain 'login' and when this happen the next time they want to login, 
problem will occur. ( because of their status is login)

i've tried using the global asa session onend......but the system cannot 
connect to the database....

Please help 
thank you
Message #2 by "Kalwinder" <kdohil@t...> on Fri, 10 Jan 2003 17:18:19
Hi,

Its easier if you hold this their login status in an ASP session variable. 
So, if they close the window without loggin out, the session will be 
killed and they will have to log-in again.


Hope this helps



> hello...

> when user log into my system, i use sql statement to insert the user's 
s> tatus as 'login' in the database. User must click the button 'log out' 
to 
u> pdate their field status to 'logout'. But when my  user just exit the 
b> rowser without clicking the 'logout' button the status in the field 
r> emain 'login' and when this happen the next time they want to login, 
p> roblem will occur. ( because of their status is login)

> i've tried using the global asa session onend......but the system cannot 
c> onnect to the database....

> Please help 
t> hank you

  Return to Index