Hi robbe/All,
I have seen this article “Prevent Multiple Logins Using the Cache in ASP.NET” on your site “NullSkull.com”.
Here you are using asp.net cache functionality to achieve above requirement. I need following functionality
- Only one user is allowed to login with one username and password at a time on any machine.
- I need to clear/kill session on browser close only(not on page refresh or timer refresh).
From your code I understood that cache will clear after given session time.
But I need to clear it when user clicks on close button of any browser.
I have seen many solutions on internet but all are not working well.
Some are clearing session on browser close but along this session is cleared on page refresh(i.e.F5,Ctrl+F5 and reload page icon in browser.)
Will you please guide me how to achieve this? Its really urgent.
Kind regards
Ram Mahajan