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

Explain Areas in MVC?

0 Answers   B-Ways TecnoSoft,


Explain the different types of assemblies?

0 Answers  


what is silverlight and what is the purpose of silverlight?

2 Answers   Cognizant, CTS,


You need to be able to retrieve data from DataSet object that has four DataTable objects. There are currently UniqueConstraint and ForeignKeyConstraint Object on the DataTable objects to enforce the data rules. You find that you can retrieve the data from the individual DataTable objects, but you are not able to retrieve the data from the combination of DataTable objects in a Parent/Child manner. What should you do to able to retrieve the data in a Parent/Child manner? a) Set the EnforceParentChild parameter of the DataSet to True. b) Set the EnforceRelation parameter of the Relations collection to True. c) Add DataRelation objects to the Relations Collection to make the DataSet present the data in Parent/Child manner. d) Add a primary key and a foreign key to each of the DataTable objects that should present the data in a Parent/Child manner.

1 Answers   Syntax Softtech,


Differentiate an ADO.NET Dataset and an ADO Recordset with its functionality?

3 Answers   Siebel,


What is application state?

0 Answers  


and can u telme how to explain about our job profile if i have 3years of it experiance in dotnet domain and where to start and where to end , and what shoul i tel and what not(can i mention my education ,and family details,......)i am confusiong a lot. can i ask one with your permision, if u have question that u u went tcs interview as 3+years exp so he/she asked tel me about your profile how can u tel and where to stop. please help me as simple as possible i am facing lot in this..............plese can anyone help me i am awaiting for your reply.

1 Answers   TCS,


What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

4 Answers  


Why session is necessary in web application?

0 Answers  


What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object

7 Answers   Bunzl Vending, Syntax Softtech,


what if we delete web.config or machine.config? will a website work if we delete webconfig....or if we delete machine config?

4 Answers   TCS,


How many Controls present in Asp dot net?

7 Answers   TCS,


Categories