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

How we can force all the validation controls to run?

727


What is the use of HttpHandlers? When to use this?

816


What is Cookies Less Session?

796


How to prevent client side validation from the ASP.NET validation controls?

771


Can we have 2 web config files?

711


Using code explain Configuration Management

1604


How to retrieve user name in case of Window Authentication?

475


How do you open a page in a new window?

751


What is the difference between visual basic and asp.net?

725


Why do we need a web application session?

695


Can you explain composite pattern?

776


Why web api is better than wcf?

757


Explain the Session state management options available with ASP.NET?

763


What is the use of web.config file?

740


How can you ensure a permanent cookie?

748