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

What are the elements of a website?

727


What is ashx file in asp.net?

756


Define reflection in .net?

761


In asp.net, how can you validate drop down box?

825


What is preprocessor in .net and type, where it use?

893


Explain diff. Between friend and protected friend?

691


Explain one critical mapping?

784


Can action method static?

755


Why is an object pool required?

818


What is meant by web application?

727


Explain page output caching?

750


What events will occur when a page is loaded?

822


What do you mean by caching in asp.net?

754


What is cross page posting in asp net?

724


How to use multiple scriptmanager controls in a web page?

863