Community discussion forum

How to prevent multiple login

  • 5 months 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

    Post was edited on 18/06/2009 03:54:56 Report abuse
  • 5 months 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....

  • 5 months 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).

Want to stay in touch with what's going on? Follow us on twitter!