Results 1 to 4 of 4

Thread: Question on Application Object

  1. #1

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Question on Application Object

    Hi,
    I dont usually use Application object too often[dont wanna overload the server]. I tend to prefer Session Object mostly.

    I have a question about Application object, I create an application object when the user logs in [cant do it using session as i want to list all the user logged into my application].

    Now i can gather all the list of the user currently online and logged into my application. Now if they log out properly then i can remove the application item for that user but when they dont log out manually and close the browser the application object is still running.

    How do i detect that the user has closed their browser and is no longer logged in.

    I am sure there is a simple way, but too lazy to look in the book now.

    Thanks for you reply

    Danial
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    How do i detect that the user has closed their browser and is no longer logged in.
    You can't really tell this, because HTTP is stateless. You have to wait for the Session to time out.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    PWNettle
    Guest
    I think the only thing you could do would be to store the user's last activity time with their name in your list of logged in users. After some interval of time you could 'auto-logoff' anyone who hasn't been active (since they are probably gone).

    Paul

  4. #4
    Addicted Member
    Join Date
    Aug 2000
    Posts
    181
    Ever thought of using the Global.asa file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width