|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a website that when people log off it writes a value to an Access database, however if they click the X on the browser
and close the window that way it doesn't work. Does anyone know of any code that would take care of this feature, as if people don't click the log off button they won't be able to log back in again without manual resetting of the database. please help |
|
#2
|
||||
|
||||
|
No, that's a system button. However, you can put code in the global.asa file's Session_OnEnd event. For example, if you happen to store the logged on user's id in a session variable, you can read that value and make the appropriate database calls. However, I have read that those events are not 100% reliable. But it has worked for me.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Checking on window closing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|