|
-
Jan 28th, 2002, 08:52 AM
#1
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 : 
-
Jan 28th, 2002, 11:45 AM
#2
Black Cat
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.
-
Jan 28th, 2002, 12:30 PM
#3
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
-
Feb 9th, 2002, 01:46 PM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|