What is the difference between application object and
session object?

Answers were Sorted based on User's Feedback



What is the difference between application object and session object?..

Answer / linton lazar

Application object can store the value through out the
application.It using Application.lock(),Application.unlock
() for store the values.

Sessions helps to preserve data across successive accesses.
These can be done on a per user basis, via the use of
session objects. Session objects give us the power to
preserve user preferences and other user information when
browsing a web application

Is This Answer Correct ?    12 Yes 1 No

What is the difference between application object and session object?..

Answer / 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

What is the difference between application object and session object?..

Answer / anand gopal makwa munger

You can use Application to store information that is accessible from all web page but it is not user-specific.To initialized application variable respond to the Application_Start event in Your Global.asax File

You can use Session to store user-specific information that is accessible from all web page. To initialized session variable respond to the Session_Start event in Global.asax File.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between application object and session object?..

Answer / kinjal panchal

Session Object:- Using the session object u can store data
for some specific user.data not store permanently in the
session.
for Example:- using the session user go throw internal pages
in the web applications up to time out of the session
and the best example of the session is e-commerce site.
in this u store the product in the session with uses other
pages of applications.

Application object:- in application object data not store
permanently but any time u modify application object using
lock() and unlock().

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Every Validation controls have same option ?

2 Answers   iGate,


What line in the following XML document will generate an error? <?xml version=?1.0?> <employees> <employee> <name>Bob Andcarrol</name> </employee> <employee> <name>Robert Burns</name> </employee> </employees> a) 6 b) 4 c) 1 d) There is no error

3 Answers   Syntax Softtech,


Is asp.net and .net the same?

0 Answers  


What is http only cookie?

0 Answers  


Explain MVC model binders?

0 Answers   B-Ways TecnoSoft,


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

0 Answers  


hai to all. what is the procedure for " web hosting ".If you know please message me at "yoursguna@gmail.com". Thank u...

1 Answers  


What are the different types of Caching techniques in ASP.NET?

0 Answers  


Please brief not about xsd,xslt & xml?

0 Answers  


What is the use of @Register directives?

3 Answers  


What are server side controls?

0 Answers  


What are the advantages of using session?

0 Answers  


Categories