Difference between application and session ?

Answers were Sorted based on User's Feedback



Difference between application and session ?..

Answer / shiva

session object is used to store information between http
request for a particular user. Application are globally
across users.

Is This Answer Correct ?    89 Yes 8 No

Difference between application and session ?..

Answer / mahendran

application :Global User
Session :Single User

Is This Answer Correct ?    65 Yes 7 No

Difference between application and session ?..

Answer / sangeetha

Both Application and session state are used to store the
data when the postback occurs in the web form.

Session State – Session State information is available to
all pages opened by a user during a single visit.

Application State - Application State information is
available to all pages, regardless of which user requests a
page.

Is This Answer Correct ?    41 Yes 2 No

Difference between application and session ?..

Answer / ajay gupta

application state is a state where we hav the information
that is global for the application,
where as
session state is a state which is maintained as a
per-client basis.
whenever a user first accesses a page a session id is
generated by asp.net.
that session id is then transmitted between the client and
the server via Http either with the help of client-side
cookies or encoded in a mangled sessions of the urls.
so the next time the users accesses,state associated with
that session id can be viewed or modified.

Is This Answer Correct ?    33 Yes 4 No

Difference between application and session ?..

Answer / vicky's

Session & Appl r parts of State Management ...

if v session one object in one form v can use it in all
forms untill the project stop's.....

but,
In Appl state if v store value it may use throughout
applacation even stop and restart it so it is very useful
for permanent data...

EX:In Some website they ll display the visitors no by
incrementing Application State data by One each time a
application Restarts.......

Is This Answer Correct ?    43 Yes 20 No

Difference between application and session ?..

Answer / maneesh upadhyay

the session object is used to maintain the session of each
user. If one user enter in to the application then they get
seesion id if he leaves from the application then the
session id is deleted.If they again enter in to the
application they get different session id.

sessions allows information to be stored in one page and
accessed in another,and it supports any type of
object,including your own custom data types.

Application state allows you to store global objects that
can be accessed by any client.

The coomon thing b/w session and application is both
support the same type of objects,retain information on the
server, and uses the same dictionary -based syntax.

Is This Answer Correct ?    14 Yes 3 No

Difference between application and session ?..

Answer / ezhil dinesh

Application state is a global storage Mechanism that is accessible from all pages in the web application.

Session State is similar to application state, except that it is scoped to the current browser session. If different users are using your application each user session will have a different session state.

In addition, if a user leaves your application and then returns later, the second user session will have a different session state from the first.
-----------------------------------------------------------
Both application and session state is useful for storing information that needs to be maintained between server roundtrips and between requests for pages.

Is This Answer Correct ?    10 Yes 4 No

Difference between application and session ?..

Answer / zakeer

Dear All,

Application Scope : is Mintained state for application like
if we have to retrive how many user connect application, how
many are alredy used..etc.

Session : is a globle scope like for one HTTP request we
have pass information form one JSP to another JSP.

if my view is wrong..please correct me .

Thanks.

Is This Answer Correct ?    10 Yes 5 No

Difference between application and session ?..

Answer / narendra

Application object is used to provide state for the Required Data.


Session object is used to provide state for the Userdata. .we can create session when user login..

Is This Answer Correct ?    4 Yes 1 No

Difference between application and session ?..

Answer / sainath

Application state is available to entire application,where as state is available in particular session

application state is also called" multi user global data".
session state is called "single user global data"

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the differences between the response.write() and response.output.write()?

0 Answers  


Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/questionform Write c# program to get the above desired output for the given Input.....

3 Answers   Bally Technologies,


Explain serialization and deserialization?

0 Answers  


A web service can only be written in .net? State whether true or false.

0 Answers  


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?

0 Answers  






what are the application layers for a distribute application?

0 Answers   Mind Tree,


what is meant by sitemapnode ?

0 Answers   Netsweeper,


Why do we need Sessions?

0 Answers   QuestPond,


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers  


Does asp.net still recognize the global.asa file?

0 Answers  


Using shadow variable is good or bad for application?

1 Answers   Keane India Ltd,


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

0 Answers   BirlaSoft,


Categories