Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 November 13th, 2010, 07:13 AM
Registered User
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default session count and crawling request

hi friends

how to count active session.

i have read few post that explains about incrementing an
application variable on session start and decrement it on session end

Sub Session_OnStart
End Sub

Sub Session_OnEnd
End Sub
but what if the google/yahoo/bing bot visit the site.

so i should think of checking the HTTP_USER_AGENT
and do the increment if the request is not from a crawler.

then problem is how to i decrement while the session end. can we check
which session is ended. like is the bot session or is it the actual visitors session that ends. how do you do this?


Last edited by neontwenty; November 13th, 2010 at 09:08 AM..
Old November 14th, 2010, 01:01 AM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want open source for crawling website with PHP Snowby PHP How-To 3 June 5th, 2008 01:57 PM
Tomcat - Creates New Session for every request IE6 vickyk_in Apache Tomcat 1 March 27th, 2007 10:41 PM
New session gets created for every request. sasikanth Classic ASP Professional 0 September 26th, 2005 10:30 AM
Session Listener Fires On Every Request bwinspur Apache Tomcat 1 October 24th, 2004 11:58 PM
How count session connected to web ? glezmart ASP.NET 1.0 and 1.1 Professional 12 January 16th, 2004 04:30 PM

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