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
Explain the difference between panel and groupbox classes using .net?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
Distinguish between Server-side and Client-side code?
Define viewstate in .net?
Explain the difference between web user control and web custom control?
What is a reflection?
How is it possible for .NET to support many languages?
What are the types of caching in asp.net?
Why is string called immutable data type?
Mention the namespace that is used to include .net data provider for sql server in .net code?
Explain what is an assembly?
Where the viewstate is stored after the page postback?
What is query string in asp.net?
Explain the asp.net mvc folder conventions? : asp.net mvc