Differences between session state and Application state?

Answers were Sorted based on User's Feedback



Differences between session state and Application state?..

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

Differences between session state and Application state?..

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

Differences between session state and Application state?..

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

Differences between session state and Application state?..

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

Differences between session state and Application state?..

Answer / bibbhuti prasad

session:
session is about particular user.
application:
it is available all users.

Is This Answer Correct ?    3 Yes 0 No

Differences between session state and Application state?..

Answer / chswapna

session is single user.
application is a multi user.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Disable browser cache for entire ASP.NET website?

0 Answers   HCL,


What is Dynamic Web and discuss its usage with the help of real life examples?

0 Answers   Huawei,


what is SQL cache Invalidation?

1 Answers  


How many types of session in ASP.NET

0 Answers   MCN Solutions,


Which is faster union or union all?

0 Answers  






how to encrypt a connection string in web.config file?

3 Answers   Hexaware,


Explain the difference between debug.write and trace.write? When should each be used?

0 Answers  


When Garbage Collector runs in an Application? 1)Application is running form more than 30 min. 2)On every 1/4th milisecond 3) Randomly 4) Application is running on low of memory

2 Answers   PCS,


How do you create a master page?

0 Answers  


What is difference in .net 1.1 and .net 2.0?

0 Answers  


Explain difference betn dataset and recordset?

0 Answers  


If I m using Session State Partioning where I have partitioned my session into 4 servers then how can I know that my session will be stored on which server?

1 Answers  


Categories