Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

Q

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

✍: Guest

A

The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.

2014-01-21, 1530👍, 0💬