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

What is meant by server side scripting?

521


Is there any property names “isnavigating”?

575


What are the advantages of asp.net mvc framework? : asp.net mvc

539


Why does my asp.net file have multiple tag with runat=server?

571


What is ispostback property?

501






Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

1942


What is asp.net web application?

522


What is css in asp.net?

545


How to display Alert in ASP.NET

639


Where would you use an ihttpmodule, and what are the limitations of any?

547


Can you explain the importance of finalize method in .net?

587


What is caching? What are different ways of caching in asp.net?

662


Define data caching?

543


Explain the use of resource manager class in .net.

503


Which is the best institute to learn Microsoft Technologies and the faculty if you Know?

1609