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 many types cache in asp net?

631


What is sta?

634


How to display Alert in ASP.NET

730


How do you secure your connection string information?

595


What is difference between web api and web services?

623






What’s difference between “optimistic” and “pessimistic” locking?

662


Define the term Web Garden?

618


What are server-side comments in ASP.NET?

653


What is marshalling ? Is it a part of asp.net ?

707


What is difference between cache and session?

589


List all templates of the repeater control.

654


What is the life cycle of an asp.net page?

608


Define a multilingual website?

618


What are the Types of objects in ASP

656


Explain Optimization technique description?

687