Hide, Disable Internet Explorer close button

TyB

Well-known member
Joined
May 14, 2009
Messages
102
Programming Experience
3-5
Hello all,

Our organization just went to a web based time clock solution. We have discovered a major flaw in the application. If a user closes IE by using the X - close button without logging out then next user is automatically logged into the previous users account.

We have instructed users not to do this but users being who they are forget that 5 seconds later. We have set the session variable as low as possible however it does not matter as you have one person clocking in or out right after another.

So my thought is to have a windows service that scans the IE windows to see if the time card program is up. This works without a problem. I also can get the windows handle ect.

I am now at the point of how to keep the user from closing the window with the x button. I thought about hiding or disabling the close button however now that I think about it maybe a better solution would be to catch the close event and show a custom message box to the user.

Any thoughts or suggestions?

Thanks,

Ty
 
Back
Top