What are the Application_Start and Session_Start
subroutines used for?

Answers were Sorted based on User's Feedback



What are the Application_Start and Session_Start subroutines used for?..

Answer / ananta

Whenever the application starts, this subroutine is fired,
So you can place codes here that is specific to the
application start event, say want to log when application
starts.
Code in Session_Start will be executed every time a new
session is started (e.g. a new user visits the site).

Is This Answer Correct ?    11 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / elango

application_start is executed when the first time the
application get executed.This is useful to findout total no
of users visted in that website and etc.
Session_start will get executed when each unique user enter
in to the application here u can access session specific
values,username ,pwd etc.

Is This Answer Correct ?    7 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / srikanth

Application_Start is fired when the application loads first
time. Here use static data only.Do not use instance data
this is recommended.


Session_Start is fired when a user enters in to the
application.(when he requests first time.)

Is This Answer Correct ?    4 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / radha

This is where you can set specific variables to the
apllication and session objects.

Is This Answer Correct ?    3 Yes 1 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / devi

This is where you can set the specific variables for the
Application and Session objects.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   Siebel Systems,


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

0 Answers  


What is diff. Between abstract class and an interface?

0 Answers  


How do you handle unhandled exceptions in ASP.NET?.

3 Answers  


Is asp.net a programming language?

0 Answers  






What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


What are the various types of cookies in asp.net?

0 Answers  


What tags do you need to add within the asp:datagrid tags to bind columns manually?

5 Answers   Siebel Systems,


why many web.config files are used in are project

2 Answers  


Do cookies store passwords?

0 Answers  


What is CLR ? Differentiate between CLR & CTS.

7 Answers   3i Infotech, TCS,


What is the use of HttpHandlers? When to use this?

0 Answers   Wipro,


Categories