Is using Application_OnStart in global.asax working with cached pages?

I would like to use the counter in global.asax, so I can do a distribution on my site every xxx visits. The question is, can my page be served from the ASP.NET cache, will the counter be updated?

Thanks in advance

+6
source share
1 answer

Application_OnStart This event fires only once when the application starts. To execute the counter, you must use the Session_Start event. In this case, the increment counter.

+3
source

Source: https://habr.com/ru/post/888526/


All Articles