Hi
I want that if user is logged in on one machine and trying to log in another machine also then he should not be allowed to log in again.
For that--
i am creating Dictionary object on application start event and saving username and cookie value in that after user log in.
and whenever user login , i m checking for existing enteries in dictionary, if dictionary contis entry for user then he is not allowed to login again else allowed to login ad added to dictionary.
The problem i am facing is when user log out then the entry of current user should be deleted from dictionary.
If i am writing code to delete entry in logoff.asp(on click of button) then its working fine.
But if user close the browser or session timeout happens then how can we delete entry.
Can anyone help me in this regard?
Thanks in advance.
Anu