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 automatic memory management in .net.

771


How does viewstate work?

776


What is the appSettings Section in the web.config file?

777


What is a runtime version?

702


Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?

714


Explain about ASP.NET?

818


How to prepare culture-specific formatting in .net.

732


Explain what does mvc represent in asp.net? : asp.net mvc

686


What are the Types of session management in ASP.NET

752


What is the significance of proxy user?

799


Which is better asp.net or php?

728


Explain an object, class and method.

724


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1760


Define the term Web Garden?

704


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

816