I am creating an application that needs to control the number of times a person
can logon..... when a user logs on... i store this value in a db table.
when they try to log on again then it will refuse them access.... the problem
lies here.... how do i know if the user has hit the [x] button on the browser
window trying to quit the application...... and is just trying to log on
again... or indeed it is another person trying to log on with the same user
name...... but different computer.
I want to be able to end the session of the first person to sign on with
a particular username when that username tries to log on again.

Thanks
Riz