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
How to unit test Web API?
Can action method static?
What are the ways to sending the data in ASP.NET page?
What is session handling in a webfarm, how it can work with its limits?
Explain the difference between asp.net mvc and asp.net webforms
How asynchronous call can be implemented using delegates?
What are the disadvantages of view state?
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
What is asp.net with mvc? : Asp.Net MVC
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
How do you identify that the page is postback?
Why mvc is faster than asp.net? : Asp.Net MVC
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?
What are the 3 types of web?
WSDL means?