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

Explain culture and uiculture values.

549


Explain what are webservices?

549


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

636


What is the use of autowireup in asp.net?

565


What is a user session?

505






Explain difference between dataset and recordset?

510


What are Master Pages in ASP.NET? or What is a Master Page?

613


in which protocol ASP.NET WEB API Work?

616


Which object wraps the state or data of a user?

552


Give some salient points of difference between request processor and request dispatcher.

618


Differentiate between structure and class.

585


List some of the important session state modes of asp.net.

508


Define common type system?

587


How do I use response redirect?

562


Explain server side state management system.

553