outputcache and visitor tracking

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
 
P

PeterKellner

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
 
N

Nalaka

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top