Differences between session state and Application state?
Answers were Sorted based on User's Feedback
Answer / n.v.s prasad
The Difference Between Sessionstate And Application state
is i)Session state is about particular user which is
available in every page of site.
ii)Application state is Available to every user in
Every page of the site.
| Is This Answer Correct ? | 72 Yes | 6 No |
Answer / samba
Session state is unique to the client
where as
Application state is sharable among the clients
| Is This Answer Correct ? | 55 Yes | 2 No |
Answer / 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 |
Answer / 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 |
Answer / bibbhuti prasad
session:
session is about particular user.
application:
it is available all users.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chswapna
session is single user.
application is a multi user.
| Is This Answer Correct ? | 1 Yes | 1 No |
What is the difference between and ActiveX dll and control ?
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
17. If I?m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
What is stateless asp or asp.net ?
2 Answers Accenture, BirlaSoft,
What are cao and sao.
How do I use a proxy server when invoking a web service?
How to find last error which occurred?
What are the types of authentication in asp.net?
Where are session variables stored?
What is the role of global.asax?
is it possible to develop gaming application using .net technology?
Why we go for mvc instead of asp.net? : Asp.Net MVC
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)