473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

outputcache and visitor tracking

Hi,
I wanted to track visitors in asp.net 2.0 app.
So I added code to method Application_PreRequestHandlerExecute.....

But, it seems like.. if output cache is enabled on a page, this method does
not get called.

Is there a generic method that is always called, even on pages that has
output caching?
I need accesss to session and cookies too.....
Thanks
Nalaka

Aug 14 '06 #1
2 1263
On Mon, 14 Aug 2006 10:24:27 -0700, "Nalaka" <na******@nospam.nospam>
wrote:
>Hi,
I wanted to track visitors in asp.net 2.0 app.
So I added code to method Application_PreRequestHandlerExecute.....

But, it seems like.. if output cache is enabled on a page, this method does
not get called.

Is there a generic method that is always called, even on pages that has
output caching?
I need accesss to session and cookies too.....
Thanks
Nalaka

The order of processing is:

BeginRequest
AuthenticateRequest (cookie gets loaded)
AuthorizeRequest
RsolveCache (Page ouptut cache loads)
....
PreRequesthandle (never gets here for cache)
Httphandler...

You need to put your processing after authenticate requests and before
resolve cache.
Peter Kellner
http://peterkellner.net
Aug 14 '06 #2
Thanks Peter..

"PeterKellner" <pk**********@73rdstreet.comwrote in message
news:59********************************@4ax.com...
On Mon, 14 Aug 2006 10:24:27 -0700, "Nalaka" <na******@nospam.nospam>
wrote:
>>Hi,
I wanted to track visitors in asp.net 2.0 app.
So I added code to method Application_PreRequestHandlerExecute.....

But, it seems like.. if output cache is enabled on a page, this method
does
not get called.

Is there a generic method that is always called, even on pages that has
output caching?
I need accesss to session and cookies too.....
Thanks
Nalaka


The order of processing is:

BeginRequest
AuthenticateRequest (cookie gets loaded)
AuthorizeRequest
RsolveCache (Page ouptut cache loads)
...
PreRequesthandle (never gets here for cache)
Httphandler...

You need to put your processing after authenticate requests and before
resolve cache.
Peter Kellner
http://peterkellner.net

Aug 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Oschler | last post by:
This is my current strategy for tracking hyperlink clicking by a site visitor (Internet Explorer example): Using Javascript I: Attach an event to the document "onclick" handler. When a click...
6
by: Tom Kiefer | last post by:
Question: If I have an ASP.NET User Control which defines/exposes a property that the page can use to specify a mode or data subset for the control to use, is there a way to tell the @OutputCache...
0
by: Vassilis T. via .NET 247 | last post by:
The following piece of code, when on a heavily loaded server (more than 50 ASP.NET pages, most using outputcache with varybyparam, lots of users), will only cache the string - the output is not...
1
by: Barbara Alderton | last post by:
I have the following scenario: I have a user control that contains a registered menu control. The menu and other information on the user control is specific to the user accessing the site. ...
1
by: Johan Nedin | last post by:
Hello! I am having a problem with the @OutputCache page directive and Web browser Back Buttons. Problem: After setting <%@ OutputCache Location="None" %> on my pages I get the "Warning!...
0
by: Mike Kansky | last post by:
i have a following tag in all of the HTML pages of my site: <img src="http://domain.com/image.aspx"> In image.aspx i just send an image to the browser using simple...
5
by: Arpan | last post by:
I am using the following code to cache the page output for 60 seconds: <%@ OutputCache Duration="60" VaryByParam="*" %> <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As...
2
by: Nalaka | last post by:
Hi, I get the following error, I thought at random intervals. Then I realized, that this happens around the time tha page outputCache is set to expire. So I disabled the page output cache and the...
9
by: brett | last post by:
How can I get the IP address of a visitor to my site in ASP.NET 2.0? Please include the full namespace. Thanks, Brett
3
by: =?Utf-8?B?TWlndWVsIElzaWRvcm8=?= | last post by:
Hi, I have an ASP.NET 2.0 application that allows content search. Search is included in all pages and a cross postback to the search results page is performed with the text inserted by the user....
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.