Differences between session state and Application state?

Answer Posted / sanjay vishwakarma

Application state will be available to all users of the
application when set
Basically user A sets application variable "AppID" to "myApp"
User B retrieves application variable "AppID" and reads "myApp"



Session state will only be available to a specific user of
the ASP.net application

User A sets session variable "UserID" to "2"
User B loads the session variable "UserID" and receives null
User A loads the session variable "UserID" and receives "2"

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the page lifecycle of an asp.net mvc? : asp.net mvc

436


How can I open ashx file in mobile?

620


Describe the master page.

554


What are the new data controls in asp.net 2.0?

524


Write code to send e-mail from an asp.net application?

544






Explain diff. Betn dataset and recordset?

547


Explain the difference between sql invalidation and sql notification.

554


Explain in what order a destructors is called.

579


What are server objects?

517


Explain how viewstate is being formed?

540


How do I know asp.net mvc version? : Asp.Net MVC

498


What are the media types of http requests and response?

510


How many types of session state management options available in asp.net?

538


What is meant by web application?

543


What is the mvc model?

577