Differences between session state and Application state?

Answer Posted / vino

Session state and Application state both are support the
same type of objects and maintain information on the server.

Session state:
- The session object is used to maintain the session of each
user. A user gets a session id when he enters in to an
application. This Id will delete when he leave from that
application. If he enters again he will get a different
session Id.
- Session allows information to be stored in one page and
access in another page and support any type of object.

Application state:

- But the application object, the Id is maintained for whole
application.
- Application state allows storing global objects that can
be accessed by any client.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain file-based dependency and key-based dependency.

571


What is the difference between trace and debug in asp.net?

613


Define asp.net caching?

534


How does viewstate work?

573


What are the different session state management options available in asp.net?

516






What is true about application service provider?

488


Explain asp.net web forms.

561


Why do we need asp.net?

590


How about the security in Activex DLL and Activex EXE ?

1785


What is the difference between session and viewstate?

514


What is webresource axd?

462


What is the compiled object?

1637


What do you mean by caching in asp.net?

548


Define the term Web Garden?

548


Explain the basic functionality of garbage collector?

526