How to prevent multiple login

SQL Server 2005 , Csharp , ASP.Net Pasir Gudang, Malaysia
  • 11 years ago

    Hi,

    I wan to prevent multiple login by the user, and i have done it by javascript which will trigger event when the user click "X" or properly close the browser

    But my problem is the javascript wont trigger when the user doesnt close the browser properly like alt+F4

    How can i know user close the browser abnormal?

    Thx in advance

  • 11 years ago

    You can try writing your .net code in the Page_Unload event. This event fires whenever a page unloads nomatter how it was closed....

  • 11 years ago

    hi,

    but wat i understand is if the page straight away close, the code inside the .net wont run...so impossible my code will executed completely

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Every language has an optimization operator. In C++ that operator is ‘//’”