When "Intelligent" makes the IE browser, the user also exits the system.

xiaoxiao2021-03-06  42

"How to log out on all pages", think about it can be implemented through a JS!

A client event is triggered when the user is turned off, or a client event is triggered when leaving the current system: window.onclose ();

A window can pop up a window to log out of the current user in onclose () this event.

Window.Open ("Logout.aspx", "Logout", "Status = NO, SCROLLBARS = No, Resizable = NO, Width = 1, Height = 1, Left = 10000, TOP = 10000");

Some people want to use document's onunload () event, which is for the Document object. So any connection on the page will trigger events.

But the Window.Close () method just triggered when refreshed, so this method is not good, and finally find such a method.