Online number statistics

zhaozj2021-02-16  174

Add code protected void application_start (Object sender, Eventargs e) {application ["user_ssions"] = 0;

} Protected void session_start (Object sender, Eventargs E) {

Application.lock (); application ["user_ssions"] = (int) Application ["user_ssions"] 1; Application.unlock ();} protected void session_end (Object sender, eventargs e) {

Application.lock (); Application ["User_SESSIONS"] = (int) Application ["user_ssions"] - 1; application.unlock ();

} Last value of the Application ["User_SESSIONS"] in the page is OK

转载请注明原文地址:https://www.9cbs.com/read-8604.html

New Post(0)