Understanding Session_OnStart and Application_OnStart

Understanding Session_OnStart and Application_OnStart


I am confused regarding the Application_OnStart and Session_OnStart events in the global.asa file. What I feel is that the application_onstart event is triggered the very first time the application is used and the session_onstart event is triggered every time a user is logged onto the application. Can you please clarify?


As a loose analogy, the application referred here is your Web site itself, while the session is one browser’s visit. Once you stop and start your Web site, the first visitor to the Web site fires the Application_OnStart event. The first time a user hits your Web site, whether he is the first visitor or not, the Session_OnStart fires.

So, for your very first visitor after you start your Web site, both the Application_OnStart and the Session_OnStart events fire. For every other visitor after that, the Session_OnStart will fire, and not the Application_OnStart. If you stop and start your Web site (services), then the cycle will be repeated.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes