Can you give an example of what might be best suited to place in the Application Start and Session Start subroutines?

Showing Answers 1 - 2 of 2 Answers

Saravanan

  • May 26th, 2005
 

Application Start - We can place code to initialize variables once during application start. (e.g, db connection string) 
 
Session Start - We can place code to initialize variables specific to the session (e.g, USER ID and other specific info related to this session) 

  Was this answer useful?  Yes

Jitendra Kumar Thakur

  • Aug 13th, 2005
 

Application Start This Event is fired when the server which holding application starts whereas Session Start event is fired when any User has access that page or Session has been created. Suppose we want to track that how many users have accessed our sites today then Application Start is the best place to do so or we want to give some personalised view to User than Session is the best place. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions