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

Answers were Sorted based on User's Feedback



Can you give an example of what might be best suited to place in the Application_Start and Session_..

Answer / raghumadhav tirunagari


Application_start need for global variable which are
available over the application.
Sesssion_Start : login dependent ( user dependent)

Is This Answer Correct ?    2 Yes 1 No

Can you give an example of what might be best suited to place in the Application_Start and Session_..

Answer / guest

I am takeing an example for "online shopping website".We
have two options for customers (like Guest and register
users) to buy a product.
1.By default we have to show guest as one user.
2.Register user who are sigined in it.
3.Also i need to display how many uesrs are online.
There are some points to remmber:
1.How can i maintain Guest user to whole app.
2.how to maintain how many uesrs are online.
Application_Start:this event is used to declare global
variables.
Application["User"]="Guest";
Session_Start:This event is used to count how many no of
users are online.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

Why the config file might not be writable

0 Answers  


what is web service?

1 Answers  


What is Opf3

0 Answers   Infosys,


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

0 Answers  


Hi i need fast track course maximum to complete within a month....courses are Asp.net,c3,vb.net n sql server........at hyderbad location ..best institute n cost

1 Answers   Chevron,






how to make and display a form without title bar?

0 Answers   Six Sigma,


Explain about .net garbage collector?

0 Answers  


Which is the best institute in chennai to learn DotNet? Please help.

48 Answers   HCL, Infosys, NIIT,


how do u achieve multilevel inheritance in .NET ?

9 Answers   Accenture, Ness Technologies, SteelWedge,


Explain the five stages in a dlx pipeline? : .NET Architecture

0 Answers  


What is CLR,MSIL and Jit Compiler and their roll in .net

1 Answers   PCS,


Explain the difference between l1 and l2 cache? : Dot net architecture

0 Answers  


Categories