Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2004, 01:57 PM
Registered User
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default timing ASP page usage

Does anyone have any suggestion how to record the amount of time a user spends on a site from when they login to when they logout.

I can make it record the time they login and the time they logout, however what happens if they don't log out or their browser crashes. How do I get it to record the logout time less the session timeout amount (probably 30 min). Would it need to be some sort of script on the server to do that ?

 
Old January 21st, 2004, 01:27 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In your global.asa file keep track of session start time and end time

*********************
Global.asa
**********************
sub Session_OnStart
' Your Session Start Time
end


subsub Session_OnEnd
'Your Session End time
end sub

Regards,
Chirag Shah






Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net application timing out upbuy6am General .NET 0 May 18th, 2005 03:26 PM
ASP.Net site timing out alex_read ASP.NET 1.0 and 1.1 Professional 2 January 29th, 2005 02:14 AM
timing issue riteshu C++ Programming 2 September 22nd, 2004 07:10 AM
ASP Components: 100%CPU usage and System shutdown Palani Classic ASP Components 2 September 21st, 2003 05:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.