how to check running instance in client' systems

Discussion in 'C#' started by MeghaShah, Jul 7, 2008.

  1. #1
    hello,

    i create one web project in that i want to check running instances in client system's.

    here suppose one user show a my website and that time i want to see that client's system how many application in running mode.

    thanks in advance

    bye

    please replay me urgent ;)
     
    MeghaShah, Jul 7, 2008 IP
  2. helpbeam

    helpbeam Guest

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This web page list a snippet that might do it.
    411asp net/func/content?tree=411asp/tutorial/howto/usermana&id=6234810

    Here's the code

    // this is in the global.asax.cs file
    
    protected void Application_Start(Object sender, EventArgs e)
    {
    	Application["activeUsers"] = 0;
    }
    
    
    
    protected void Session_Start(Object sender, EventArgs e)
    {
    	Application.Lock();
    	Application["activeUsers"] = (int)Application["activeUsers"] + 1;
    	Application.UnLock();
    }
    
    
    
    protected void Session_End(Object sender, EventArgs e)
    {
    	Application.Lock();
    	Application["activeUser"] = (int)Application["activeUsers"] - 1;
    	Application.UnLock();
    }
    
    
    // this gets put into the page your want to display your value in
    
    Application["activeUsers"]
    Code (markup):
     
    helpbeam, Jul 7, 2008 IP