What is the difference between application object and
session object?

Answer Posted / sridevipc

A session is the time for which a particular user interacts
with a web application.

that data stored in session is not permanent and data
stored is usually only available to a specific user

Sessions serve as a way to transport and maintain user data
in web pages, such as forums, or e-commerce websites.

The Application object stores data that is shared accross
the application and not for a specific user. Internally the
values of both the Session and Application objects are
stored in a key/value pair (HashTable). All data stored in
Application in stored 'in process', meaning if you restart
your application all data in lost (I will show you how to
maintain all application data in another tutorial).

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How ASP and ASP.NET page works? Explain about asp.net page life cycle?

581


What are url fragments?

501


Is sql backend or frontend?

553


Explain the advantages of caching?

529


Which method is used to enforce garbage collection in .net?

424






Can you change a master page dynamically at runtime? How?

501


How does session work in asp net?

554


What is the main difference between Asp.net and Vb.net?

566


How is the asp.net mvc architecture different from others? : asp.net mvc

479


What is the use of view state?

526


What are the various types of validation controls provided by asp.net?

539


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

510


How does viewstate work?

572


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

561


Describe the difference between inline and code behind - which is best in?

506