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