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

Can you explain one critical mapping?

0 Answers  


How can we provide the WebParts control functionality to a server control?

0 Answers   MindCracker,


What are the different methods that are used during the page load?

1 Answers   Siebel,


Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form

3 Answers   Syntax Softtech,


What Name space does the web page belon in the .net framework class hierarchy?

1 Answers   L&T, Wipro,






User contro having 4 text boxes given validation controls. i want to execute validations after the button click event how it is?

3 Answers  


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

0 Answers  


What are the differences between primary foreign and unique keys?

0 Answers  


Different type of validation controls in asp.net ?

1 Answers   CTS, Keane India Ltd,


What are the Types of object in asp

0 Answers   BirlaSoft,


Explain a program using code nuggets to create a simple application? : asp.net mvc

0 Answers  


How do you implement Paging in .Net ?

1 Answers  


Categories