What is the difference between application object and
session object?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What do you mean by role-based security?
What are the modes of updation in an updatepanel? What are triggers of an updatepanel?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
Can we throw exception from catch block ?
4 Answers Accenture, BirlaSoft,
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?
7 Answers eMids, Infotech, Integra, TCS, Wipro,
How many Controls present in Asp dot net?
Explain how do you deploy your asp.net application?
What is inproc and outproc?
What are asp.net web forms?
What is view state and how this can be done and was this there in asp?
11 Answers Accenture, KDOT, Mphasis,
Can you nest updatepanel within each other?
Describe the difference between inline and code behind.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)