Difference between application and session ?

Answers were Sorted based on User's Feedback



Difference between application and session ?..

Answer / sumitpalsingh

Session object is used to store state specific information per client basis. It is specific to particular user.
Application object is used to store data which available across the entire application and shared across multiple users sessions.

Session has the expiration time,default time 20 mints.But application object doesn't have the expiration time.

Session object is used to maintain the session of each user. If one user enter in to the application then they get seesion id if he leaves from the application then the session id is deleted.If they again enter in to the application they get different session id.
But for application object the id is maintained for whole application.it doesn't differ for any user.

Is This Answer Correct ?    1 Yes 0 No

Difference between application and session ?..

Answer / santosh

sessions allows information to be stored in one page and accessed in another and it supports any type of object including your own custom data types.

Application state allows you to store global objects that can be accessed by any client.

The coomon thing b/w session and application is both support the same type of objects retain information on the server and uses the same dictionary -based syntax.

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

What events will occur when a page is loaded?

0 Answers  


A web service can only be written in .net? State whether true or false.

0 Answers  


To call a Web service SOAP which transport protocol you use?

3 Answers   Siebel,


Question asked by one of interviewer in panal is given below: We have 2 user control on same page ,1st user control contains textbox and a button while 2nd user control have label. when ever we click on button click of 1st custom control button the value of the textBox will get updated into Label of 2nd custom control. How to do this.Your help will be appreciated.

1 Answers  


what is profiles in asp.net

1 Answers  


Can any one explain with the example how to capture the application error in Aplication_Error() method?

1 Answers   Infosys,


What is the difference between CLICK and MOUSE DOWN Event ?

0 Answers   MCN Solutions,


What is the parent class of all web server control?

0 Answers  


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

0 Answers  


what is asp and asp.net ?

2 Answers   Inspira Technologies,


What is the asp.net control toolkit?

0 Answers  


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


Categories