outputcache and visitor tracking

  • Thread starter Thread starter Nalaka
  • Start date Start date
N

Nalaka

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
 
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
 
Thanks Peter..

PeterKellner said:
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
 
Back
Top